Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Unified Diff: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc

Issue 2664283003: Add field trial param to suppress disallowed subresource notifications. (Closed)
Patch Set: fix compilation error Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
diff --git a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
index 78935d5a6ea572bf667270628a669398085b95d7..63942318cad19a17b64dea4d4347e6738d5d50c9 100644
--- a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
+++ b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
@@ -88,6 +88,9 @@ void ContentSubresourceFilterDriverFactory::CreateDriverForFrameHostIfNeeded(
}
void ContentSubresourceFilterDriverFactory::OnFirstSubresourceLoadDisallowed() {
+ if (ShouldSuppressNotifications())
+ return;
+
client_->ToggleNotificationVisibility(activation_level_ ==
ActivationLevel::ENABLED);
}
« no previous file with comments | « no previous file | components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698