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

Unified Diff: chrome/browser/content_settings/cookie_settings.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: 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/cookie_settings.cc
diff --git a/chrome/browser/content_settings/cookie_settings.cc b/chrome/browser/content_settings/cookie_settings.cc
index 83551bd3395df1f7e8c750bb7a619f2bfe83d5c3..3bde74d9a6fdd19ec72365a150cf45b7d22cf18c 100644
--- a/chrome/browser/content_settings/cookie_settings.cc
+++ b/chrome/browser/content_settings/cookie_settings.cc
@@ -183,12 +183,12 @@ ContentSetting CookieSettings::GetCookieSetting(
// First get any host-specific settings.
content_settings::SettingInfo info;
- scoped_ptr<base::Value> value(host_content_settings_map_->GetWebsiteSetting(
+ scoped_ptr<base::Value> value = host_content_settings_map_->GetWebsiteSetting(
url,
first_party_url,
CONTENT_SETTINGS_TYPE_COOKIES,
std::string(),
- &info));
+ &info);
if (source)
*source = info.source;

Powered by Google App Engine
This is Rietveld 408576698