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

Side by Side Diff: chrome/browser/extensions/api/settings_private/prefs_util.cc

Issue 2237533002: Add checkbox to allow auto signing in with a saved password. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback and rebase Created 4 years, 4 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 settings_private::PrefType::PREF_TYPE_BOOLEAN; 108 settings_private::PrefType::PREF_TYPE_BOOLEAN;
109 (*s_whitelist)["homepage"] = settings_private::PrefType::PREF_TYPE_URL; 109 (*s_whitelist)["homepage"] = settings_private::PrefType::PREF_TYPE_URL;
110 (*s_whitelist)["homepage_is_newtabpage"] = 110 (*s_whitelist)["homepage_is_newtabpage"] =
111 settings_private::PrefType::PREF_TYPE_BOOLEAN; 111 settings_private::PrefType::PREF_TYPE_BOOLEAN;
112 (*s_whitelist)["intl.app_locale"] = 112 (*s_whitelist)["intl.app_locale"] =
113 settings_private::PrefType::PREF_TYPE_STRING; 113 settings_private::PrefType::PREF_TYPE_STRING;
114 (*s_whitelist)["net.network_prediction_options"] = 114 (*s_whitelist)["net.network_prediction_options"] =
115 settings_private::PrefType::PREF_TYPE_NUMBER; 115 settings_private::PrefType::PREF_TYPE_NUMBER;
116 (*s_whitelist)["profile.password_manager_enabled"] = 116 (*s_whitelist)["profile.password_manager_enabled"] =
117 settings_private::PrefType::PREF_TYPE_BOOLEAN; 117 settings_private::PrefType::PREF_TYPE_BOOLEAN;
118 (*s_whitelist)["credentials_enable_autosignin"] =
119 settings_private::PrefType::PREF_TYPE_BOOLEAN;
118 (*s_whitelist)["safebrowsing.enabled"] = 120 (*s_whitelist)["safebrowsing.enabled"] =
119 settings_private::PrefType::PREF_TYPE_BOOLEAN; 121 settings_private::PrefType::PREF_TYPE_BOOLEAN;
120 (*s_whitelist)["safebrowsing.extended_reporting_enabled"] = 122 (*s_whitelist)["safebrowsing.extended_reporting_enabled"] =
121 settings_private::PrefType::PREF_TYPE_BOOLEAN; 123 settings_private::PrefType::PREF_TYPE_BOOLEAN;
122 (*s_whitelist)["search.suggest_enabled"] = 124 (*s_whitelist)["search.suggest_enabled"] =
123 settings_private::PrefType::PREF_TYPE_BOOLEAN; 125 settings_private::PrefType::PREF_TYPE_BOOLEAN;
124 (*s_whitelist)["session.restore_on_startup"] = 126 (*s_whitelist)["session.restore_on_startup"] =
125 settings_private::PrefType::PREF_TYPE_NUMBER; 127 settings_private::PrefType::PREF_TYPE_NUMBER;
126 (*s_whitelist)["session.startup_urls"] = 128 (*s_whitelist)["session.startup_urls"] =
127 settings_private::PrefType::PREF_TYPE_LIST; 129 settings_private::PrefType::PREF_TYPE_LIST;
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 654
653 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 655 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
654 #if defined(OS_CHROMEOS) 656 #if defined(OS_CHROMEOS)
655 return CrosSettings::Get()->IsCrosSettings(pref_name); 657 return CrosSettings::Get()->IsCrosSettings(pref_name);
656 #else 658 #else
657 return false; 659 return false;
658 #endif 660 #endif
659 } 661 }
660 662
661 } // namespace extensions 663 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698