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

Unified Diff: chrome/browser/content_settings/permission_queue_controller.cc

Issue 593153002: Restore the iframe behavior of notification permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/content_settings/permission_queue_controller.cc
diff --git a/chrome/browser/content_settings/permission_queue_controller.cc b/chrome/browser/content_settings/permission_queue_controller.cc
index 191e0850196f26c4d30fd0cc7ef8449c015a0138..9527b6e21ef2824db17e76e1da23ac379fe7331c 100644
--- a/chrome/browser/content_settings/permission_queue_controller.cc
+++ b/chrome/browser/content_settings/permission_queue_controller.cc
@@ -369,6 +369,18 @@ void PermissionQueueController::UpdateContentSetting(
ContentSetting content_setting =
allowed ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_BLOCK;
+
+ if (type_ == CONTENT_SETTINGS_TYPE_NOTIFICATIONS) {
Peter Beverloo 2014/09/23 15:58:47 Can you file a bug about removing this (and other)
Miguel Garcia 2014/09/23 16:53:38 Done. (crbug.com/416894)
+ profile_->GetHostContentSettingsMap()->SetContentSetting(
+ ContentSettingsPattern::FromURLNoWildcard(
Peter Beverloo 2014/09/23 15:58:46 nit: indent with four spaces.
Miguel Garcia 2014/09/23 16:53:38 Done.
+ requesting_frame.GetOrigin()),
+ ContentSettingsPattern::Wildcard(),
Bernhard Bauer 2014/09/23 16:13:02 This is the only difference to the call below, rig
Miguel Garcia 2014/09/23 16:53:38 Done.
+ CONTENT_SETTINGS_TYPE_NOTIFICATIONS,
+ std::string(),
+ content_setting);
+ return;
+ }
+
profile_->GetHostContentSettingsMap()->SetContentSetting(
ContentSettingsPattern::FromURLNoWildcard(requesting_frame.GetOrigin()),
ContentSettingsPattern::FromURLNoWildcard(embedder.GetOrigin()),

Powered by Google App Engine
This is Rietveld 408576698