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

Unified Diff: chrome/browser/android/preferences/website_preference_bridge.cc

Issue 1694923004: Use GURLs instead of patterns in SetContentSetting in notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scoping_set_content_setting
Patch Set: recover ClearSetting() for user input patterns to use SetContentSetting() directly Created 4 years, 9 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/android/preferences/website_preference_bridge.cc
diff --git a/chrome/browser/android/preferences/website_preference_bridge.cc b/chrome/browser/android/preferences/website_preference_bridge.cc
index 070514a98cd9249014f6ded70a41d745b7c55377..1243f3aa8e9752529347e1afe596116f927988da 100644
--- a/chrome/browser/android/preferences/website_preference_bridge.cc
+++ b/chrome/browser/android/preferences/website_preference_bridge.cc
@@ -340,8 +340,7 @@ static void SetNotificationSettingForOrigin(
ContentSetting setting = (ContentSetting) value;
switch (setting) {
case CONTENT_SETTING_DEFAULT:
- DesktopNotificationProfileUtil::ClearSetting(
- profile, ContentSettingsPattern::FromURLNoWildcard(url));
+ DesktopNotificationProfileUtil::ClearSetting(profile, url);
break;
case CONTENT_SETTING_ALLOW:
DesktopNotificationProfileUtil::GrantPermission(profile, url);

Powered by Google App Engine
This is Rietveld 408576698