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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" 5 #include "chrome/browser/extensions/api/settings_private/prefs_util.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/extensions/chrome_extension_function.h" 9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 settings_private::PrefType::PREF_TYPE_LIST; 123 settings_private::PrefType::PREF_TYPE_LIST;
124 (*s_whitelist)["spellcheck.dictionaries"] = 124 (*s_whitelist)["spellcheck.dictionaries"] =
125 settings_private::PrefType::PREF_TYPE_LIST; 125 settings_private::PrefType::PREF_TYPE_LIST;
126 (*s_whitelist)["spellcheck.use_spelling_service"] = 126 (*s_whitelist)["spellcheck.use_spelling_service"] =
127 settings_private::PrefType::PREF_TYPE_BOOLEAN; 127 settings_private::PrefType::PREF_TYPE_BOOLEAN;
128 (*s_whitelist)["translate.enabled"] = 128 (*s_whitelist)["translate.enabled"] =
129 settings_private::PrefType::PREF_TYPE_BOOLEAN; 129 settings_private::PrefType::PREF_TYPE_BOOLEAN;
130 (*s_whitelist)["translate_blocked_languages"] = 130 (*s_whitelist)["translate_blocked_languages"] =
131 settings_private::PrefType::PREF_TYPE_LIST; 131 settings_private::PrefType::PREF_TYPE_LIST;
132 132
133 // Site Settings prefs.
134 (*s_whitelist)["profile.block_third_party_cookies"] =
135 settings_private::PrefType::PREF_TYPE_BOOLEAN;
136
133 // Clear browsing data settings. 137 // Clear browsing data settings.
134 (*s_whitelist)["browser.clear_data.browsing_history"] = 138 (*s_whitelist)["browser.clear_data.browsing_history"] =
135 settings_private::PrefType::PREF_TYPE_BOOLEAN; 139 settings_private::PrefType::PREF_TYPE_BOOLEAN;
136 (*s_whitelist)["browser.clear_data.download_history"] = 140 (*s_whitelist)["browser.clear_data.download_history"] =
137 settings_private::PrefType::PREF_TYPE_BOOLEAN; 141 settings_private::PrefType::PREF_TYPE_BOOLEAN;
138 (*s_whitelist)["browser.clear_data.cache"] = 142 (*s_whitelist)["browser.clear_data.cache"] =
139 settings_private::PrefType::PREF_TYPE_BOOLEAN; 143 settings_private::PrefType::PREF_TYPE_BOOLEAN;
140 (*s_whitelist)["browser.clear_data.cookies"] = 144 (*s_whitelist)["browser.clear_data.cookies"] =
141 settings_private::PrefType::PREF_TYPE_BOOLEAN; 145 settings_private::PrefType::PREF_TYPE_BOOLEAN;
142 (*s_whitelist)["browser.clear_data.passwords"] = 146 (*s_whitelist)["browser.clear_data.passwords"] =
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 637
634 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 638 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
635 #if defined(OS_CHROMEOS) 639 #if defined(OS_CHROMEOS)
636 return CrosSettings::Get()->IsCrosSettings(pref_name); 640 return CrosSettings::Get()->IsCrosSettings(pref_name);
637 #else 641 #else
638 return false; 642 return false;
639 #endif 643 #endif
640 } 644 }
641 645
642 } // namespace extensions 646 } // namespace extensions
OLDNEW
« 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