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

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

Issue 1273053002: Use Smart Lock preference instead of Chrome Password manager preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@reconcile_yolo_settings
Patch Set: Use Smart Lock preference instead of Chrome Password manager preference. Created 3 years, 10 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/extensions/settings_api_helpers.h" 10 #include "chrome/browser/extensions/settings_api_helpers.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 (*s_whitelist)[::prefs::kLocalDiscoveryNotificationsEnabled] = 138 (*s_whitelist)[::prefs::kLocalDiscoveryNotificationsEnabled] =
139 settings_private::PrefType::PREF_TYPE_BOOLEAN; 139 settings_private::PrefType::PREF_TYPE_BOOLEAN;
140 140
141 // Miscellaneous. TODO(stevenjb): categorize. 141 // Miscellaneous. TODO(stevenjb): categorize.
142 (*s_whitelist)[::prefs::kEnableDoNotTrack] = 142 (*s_whitelist)[::prefs::kEnableDoNotTrack] =
143 settings_private::PrefType::PREF_TYPE_BOOLEAN; 143 settings_private::PrefType::PREF_TYPE_BOOLEAN;
144 (*s_whitelist)[::prefs::kApplicationLocale] = 144 (*s_whitelist)[::prefs::kApplicationLocale] =
145 settings_private::PrefType::PREF_TYPE_STRING; 145 settings_private::PrefType::PREF_TYPE_STRING;
146 (*s_whitelist)[::prefs::kNetworkPredictionOptions] = 146 (*s_whitelist)[::prefs::kNetworkPredictionOptions] =
147 settings_private::PrefType::PREF_TYPE_NUMBER; 147 settings_private::PrefType::PREF_TYPE_NUMBER;
148 (*s_whitelist)[password_manager::prefs::kPasswordManagerSavingEnabled] = 148 (*s_whitelist)[password_manager::prefs::kCredentialsEnableService] =
149 settings_private::PrefType::PREF_TYPE_BOOLEAN; 149 settings_private::PrefType::PREF_TYPE_BOOLEAN;
150 (*s_whitelist)[password_manager::prefs::kCredentialsEnableAutosignin] = 150 (*s_whitelist)[password_manager::prefs::kCredentialsEnableAutosignin] =
151 settings_private::PrefType::PREF_TYPE_BOOLEAN; 151 settings_private::PrefType::PREF_TYPE_BOOLEAN;
152 (*s_whitelist)[::prefs::kSafeBrowsingEnabled] = 152 (*s_whitelist)[::prefs::kSafeBrowsingEnabled] =
153 settings_private::PrefType::PREF_TYPE_BOOLEAN; 153 settings_private::PrefType::PREF_TYPE_BOOLEAN;
154 (*s_whitelist)[::prefs::kSafeBrowsingExtendedReportingEnabled] = 154 (*s_whitelist)[::prefs::kSafeBrowsingExtendedReportingEnabled] =
155 settings_private::PrefType::PREF_TYPE_BOOLEAN; 155 settings_private::PrefType::PREF_TYPE_BOOLEAN;
156 (*s_whitelist)[::prefs::kSearchSuggestEnabled] = 156 (*s_whitelist)[::prefs::kSearchSuggestEnabled] =
157 settings_private::PrefType::PREF_TYPE_BOOLEAN; 157 settings_private::PrefType::PREF_TYPE_BOOLEAN;
158 (*s_whitelist)[spellcheck::prefs::kSpellCheckDictionaries] = 158 (*s_whitelist)[spellcheck::prefs::kSpellCheckDictionaries] =
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 if (pref_object.key == ::prefs::kDefaultSearchProviderEnabled) 733 if (pref_object.key == ::prefs::kDefaultSearchProviderEnabled)
734 return GetExtensionOverridingSearchEngine(profile_); 734 return GetExtensionOverridingSearchEngine(profile_);
735 735
736 if (pref_object.key == proxy_config::prefs::kProxy) 736 if (pref_object.key == proxy_config::prefs::kProxy)
737 return GetExtensionOverridingProxy(profile_); 737 return GetExtensionOverridingProxy(profile_);
738 738
739 return nullptr; 739 return nullptr;
740 } 740 }
741 741
742 } // namespace extensions 742 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698