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

Unified Diff: chrome/browser/extensions/api/settings_private/prefs_util.cc

Issue 2031833003: MD Site Settings: Implement the third-party checkbox for Cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 6 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
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/resources/settings/privacy_page/privacy_page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/settings_private/prefs_util.cc
diff --git a/chrome/browser/extensions/api/settings_private/prefs_util.cc b/chrome/browser/extensions/api/settings_private/prefs_util.cc
index 0a573c0da6162f11d0612f3cea1a4e43364c53e3..7ae64a898d4ff38807703982f52e1cd57ce996ce 100644
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -130,6 +130,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelistedKeys() {
(*s_whitelist)["translate_blocked_languages"] =
settings_private::PrefType::PREF_TYPE_LIST;
+ // Site Settings prefs.
+ (*s_whitelist)["profile.block_third_party_cookies"] =
+ settings_private::PrefType::PREF_TYPE_BOOLEAN;
+
// Clear browsing data settings.
(*s_whitelist)["browser.clear_data.browsing_history"] =
settings_private::PrefType::PREF_TYPE_BOOLEAN;
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/resources/settings/privacy_page/privacy_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698