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

Unified Diff: chrome/browser/subresource_filter/chrome_subresource_filter_client.cc

Issue 2877553002: [subresource_filter] Swap ALLOW and BLOCK meanings in the content setting (Closed)
Patch Set: fix newer tests Created 3 years, 7 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
Index: chrome/browser/subresource_filter/chrome_subresource_filter_client.cc
diff --git a/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc b/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc
index 6c1a9d1fe4f59de1b3188d23ac429add34981628..cbb4b0b337751ee8f93a33d54d2af3fa4000528d 100644
--- a/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc
+++ b/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc
@@ -129,7 +129,7 @@ bool ChromeSubresourceFilterClient::OnPageActivationComputed(
// Return whether the activation should be whitelisted.
return whitelisted_hosts_.count(url.host()) ||
- settings_manager_->GetSitePermission(url) == CONTENT_SETTING_BLOCK;
+ settings_manager_->GetSitePermission(url) == CONTENT_SETTING_ALLOW;
// TODO(csharrison): Consider setting the metadata to an empty dict here if
// the site is activated and not whitelisted. Need to be careful about various
// edge cases like |should_suppress_notification| and DRYRUN activation.

Powered by Google App Engine
This is Rietveld 408576698