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

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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 (*s_whitelist)["enable_do_not_track"] = 81 (*s_whitelist)["enable_do_not_track"] =
82 settings_private::PrefType::PREF_TYPE_BOOLEAN; 82 settings_private::PrefType::PREF_TYPE_BOOLEAN;
83 (*s_whitelist)["homepage"] = settings_private::PrefType::PREF_TYPE_URL; 83 (*s_whitelist)["homepage"] = settings_private::PrefType::PREF_TYPE_URL;
84 (*s_whitelist)["homepage_is_newtabpage"] = 84 (*s_whitelist)["homepage_is_newtabpage"] =
85 settings_private::PrefType::PREF_TYPE_BOOLEAN; 85 settings_private::PrefType::PREF_TYPE_BOOLEAN;
86 (*s_whitelist)["intl.app_locale"] = 86 (*s_whitelist)["intl.app_locale"] =
87 settings_private::PrefType::PREF_TYPE_STRING; 87 settings_private::PrefType::PREF_TYPE_STRING;
88 (*s_whitelist)["net.network_prediction_options"] = 88 (*s_whitelist)["net.network_prediction_options"] =
89 settings_private::PrefType::PREF_TYPE_NUMBER; 89 settings_private::PrefType::PREF_TYPE_NUMBER;
90 (*s_whitelist)["profile.password_manager_allow_show_passwords"] =
91 settings_private::PrefType::PREF_TYPE_BOOLEAN;
92 (*s_whitelist)["profile.password_manager_enabled"] = 90 (*s_whitelist)["profile.password_manager_enabled"] =
93 settings_private::PrefType::PREF_TYPE_BOOLEAN; 91 settings_private::PrefType::PREF_TYPE_BOOLEAN;
94 (*s_whitelist)["safebrowsing.enabled"] = 92 (*s_whitelist)["safebrowsing.enabled"] =
95 settings_private::PrefType::PREF_TYPE_BOOLEAN; 93 settings_private::PrefType::PREF_TYPE_BOOLEAN;
96 (*s_whitelist)["safebrowsing.extended_reporting_enabled"] = 94 (*s_whitelist)["safebrowsing.extended_reporting_enabled"] =
97 settings_private::PrefType::PREF_TYPE_BOOLEAN; 95 settings_private::PrefType::PREF_TYPE_BOOLEAN;
98 (*s_whitelist)["search.suggest_enabled"] = 96 (*s_whitelist)["search.suggest_enabled"] =
99 settings_private::PrefType::PREF_TYPE_BOOLEAN; 97 settings_private::PrefType::PREF_TYPE_BOOLEAN;
100 (*s_whitelist)["session.restore_on_startup"] = 98 (*s_whitelist)["session.restore_on_startup"] =
101 settings_private::PrefType::PREF_TYPE_NUMBER; 99 settings_private::PrefType::PREF_TYPE_NUMBER;
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 613
616 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 614 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
617 #if defined(OS_CHROMEOS) 615 #if defined(OS_CHROMEOS)
618 return CrosSettings::Get()->IsCrosSettings(pref_name); 616 return CrosSettings::Get()->IsCrosSettings(pref_name);
619 #else 617 #else
620 return false; 618 return false;
621 #endif 619 #endif
622 } 620 }
623 621
624 } // namespace extensions 622 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698