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

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

Issue 1457713007: Update the "Passwords and Forms" section so that they can be toggled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Big simplification! Created 5 years, 1 month 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 | « no previous file | chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.css » ('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 89356e9837de14c3ff287ca6d5db47b048b8dbcb..0620287f35f4e874f7b8f6081cda3e5e14283c8d 100644
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -61,6 +61,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelistedKeys() {
s_whitelist = new PrefsUtil::TypedPrefMap();
(*s_whitelist)["alternate_error_pages.enabled"] =
settings_private::PrefType::PREF_TYPE_BOOLEAN;
+ (*s_whitelist)["autofill.enabled"] =
+ settings_private::PrefType::PREF_TYPE_BOOLEAN;
(*s_whitelist)["bookmark_bar.show_on_all_tabs"] =
settings_private::PrefType::PREF_TYPE_BOOLEAN;
(*s_whitelist)["browser.show_home_button"] =
@@ -78,6 +80,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelistedKeys() {
settings_private::PrefType::PREF_TYPE_STRING;
(*s_whitelist)["net.network_prediction_options"] =
settings_private::PrefType::PREF_TYPE_NUMBER;
+ (*s_whitelist)["profile.password_manager_enabled"] =
+ settings_private::PrefType::PREF_TYPE_BOOLEAN;
(*s_whitelist)["safebrowsing.enabled"] =
settings_private::PrefType::PREF_TYPE_BOOLEAN;
(*s_whitelist)["safebrowsing.extended_reporting_enabled"] =
« no previous file with comments | « no previous file | chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698