diff --git a/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch b/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch index 1b0164fb..851b749a 100644 --- a/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch +++ b/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch @@ -4337,10 +4337,11 @@ } absl::optional -@@ -397,20 +279,7 @@ int SafeBrowsingMetricsCollector::GetEve +@@ -396,23 +278,6 @@ int SafeBrowsingMetricsCollector::GetEve + }); } - UserState SafeBrowsingMetricsCollector::GetUserState() { +-UserState SafeBrowsingMetricsCollector::GetUserState() { - if (IsSafeBrowsingPolicyManaged(*pref_service_)) { - return UserState::kManaged; - } @@ -4355,10 +4356,11 @@ - NOTREACHED() << "Unexpected Safe Browsing state."; - return UserState::kStandardProtection; - } -+ NOTREACHED() << "Unexpected Safe Browsing state."; - } - +-} +- bool SafeBrowsingMetricsCollector::IsBypassEventType(const EventType& type) { + switch (type) { + case EventType::USER_STATE_DISABLED: --- a/components/safe_browsing/core/browser/tailored_security_service/tailored_security_service.cc +++ b/components/safe_browsing/core/browser/tailored_security_service/tailored_security_service.cc @@ -23,7 +23,6 @@