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

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

Issue 1846623002: Remove password-manager-reauthentication flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebased Created 4 years, 8 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 (*s_whitelist)["enable_do_not_track"] = 99 (*s_whitelist)["enable_do_not_track"] =
100 settings_private::PrefType::PREF_TYPE_BOOLEAN; 100 settings_private::PrefType::PREF_TYPE_BOOLEAN;
101 (*s_whitelist)["homepage"] = settings_private::PrefType::PREF_TYPE_URL; 101 (*s_whitelist)["homepage"] = settings_private::PrefType::PREF_TYPE_URL;
102 (*s_whitelist)["homepage_is_newtabpage"] = 102 (*s_whitelist)["homepage_is_newtabpage"] =
103 settings_private::PrefType::PREF_TYPE_BOOLEAN; 103 settings_private::PrefType::PREF_TYPE_BOOLEAN;
104 (*s_whitelist)["intl.app_locale"] = 104 (*s_whitelist)["intl.app_locale"] =
105 settings_private::PrefType::PREF_TYPE_STRING; 105 settings_private::PrefType::PREF_TYPE_STRING;
106 (*s_whitelist)["net.network_prediction_options"] = 106 (*s_whitelist)["net.network_prediction_options"] =
107 settings_private::PrefType::PREF_TYPE_NUMBER; 107 settings_private::PrefType::PREF_TYPE_NUMBER;
108 (*s_whitelist)["profile.password_manager_allow_show_passwords"] =
109 settings_private::PrefType::PREF_TYPE_BOOLEAN;
110 (*s_whitelist)["profile.password_manager_enabled"] = 108 (*s_whitelist)["profile.password_manager_enabled"] =
111 settings_private::PrefType::PREF_TYPE_BOOLEAN; 109 settings_private::PrefType::PREF_TYPE_BOOLEAN;
112 (*s_whitelist)["safebrowsing.enabled"] = 110 (*s_whitelist)["safebrowsing.enabled"] =
113 settings_private::PrefType::PREF_TYPE_BOOLEAN; 111 settings_private::PrefType::PREF_TYPE_BOOLEAN;
114 (*s_whitelist)["safebrowsing.extended_reporting_enabled"] = 112 (*s_whitelist)["safebrowsing.extended_reporting_enabled"] =
115 settings_private::PrefType::PREF_TYPE_BOOLEAN; 113 settings_private::PrefType::PREF_TYPE_BOOLEAN;
116 (*s_whitelist)["search.suggest_enabled"] = 114 (*s_whitelist)["search.suggest_enabled"] =
117 settings_private::PrefType::PREF_TYPE_BOOLEAN; 115 settings_private::PrefType::PREF_TYPE_BOOLEAN;
118 (*s_whitelist)["session.restore_on_startup"] = 116 (*s_whitelist)["session.restore_on_startup"] =
119 settings_private::PrefType::PREF_TYPE_NUMBER; 117 settings_private::PrefType::PREF_TYPE_NUMBER;
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 615
618 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 616 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
619 #if defined(OS_CHROMEOS) 617 #if defined(OS_CHROMEOS)
620 return CrosSettings::Get()->IsCrosSettings(pref_name); 618 return CrosSettings::Get()->IsCrosSettings(pref_name);
621 #else 619 #else
622 return false; 620 return false;
623 #endif 621 #endif
624 } 622 }
625 623
626 } // namespace extensions 624 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698