Index: chrome/browser/notifications/message_center_settings_controller.cc |
diff --git a/chrome/browser/notifications/message_center_settings_controller.cc b/chrome/browser/notifications/message_center_settings_controller.cc |
index e16109effebd6931280e14530242b4d4ef453c67..6cb9532ddb069960932a826e59047a16c300861e 100644 |
--- a/chrome/browser/notifications/message_center_settings_controller.cc |
+++ b/chrome/browser/notifications/message_center_settings_controller.cc |
@@ -351,7 +351,11 @@ void MessageCenterSettingsController::SetNotifierEnabled( |
} |
if (pattern.IsValid()) |
raymes
2016/03/16 03:17:45
nit: {}
Also, I think we should add a comment her
lshang
2016/03/16 04:59:14
Done.
|
- DesktopNotificationProfileUtil::ClearSetting(profile, pattern); |
+ HostContentSettingsMapFactory::GetForProfile(profile) |
+ ->SetContentSetting(pattern, ContentSettingsPattern::Wildcard(), |
+ CONTENT_SETTINGS_TYPE_NOTIFICATIONS, |
+ content_settings::ResourceIdentifier(), |
+ CONTENT_SETTING_DEFAULT); |
} |
} else { |
NotifierStateTrackerFactory::GetForProfile(profile) |