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

Unified Diff: chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc

Issue 542253003: Add a global on/off switch for content settings and expose a toggle on the Website Settings options… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@global-settings
Patch Set: Rebase. 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/ui/android/content_settings/popup_blocked_infobar_delegate.cc
diff --git a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc
index 73efc8ce4812257d8b86d9de76f3968fd63e33c1..cef5b3ca9a61b0e637bfa117bec60c0853b9ba9a 100644
--- a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc
+++ b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc
@@ -62,13 +62,8 @@ PopupBlockedInfoBarDelegate::PopupBlockedInfoBarDelegate(
HostContentSettingsMap* map)
: ConfirmInfoBarDelegate(), num_popups_(num_popups), url_(url), map_(map) {
content_settings::SettingInfo setting_info;
- scoped_ptr<base::Value> setting(
- map->GetWebsiteSetting(
- url,
- url,
- CONTENT_SETTINGS_TYPE_POPUPS,
- std::string(),
- &setting_info));
+ scoped_ptr<base::Value> setting = map->GetWebsiteSetting(
+ url, url, CONTENT_SETTINGS_TYPE_POPUPS, std::string(), &setting_info);
can_show_popups_ =
setting_info.source != content_settings::SETTING_SOURCE_POLICY;
}

Powered by Google App Engine
This is Rietveld 408576698