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

Unified Diff: chrome/browser/extensions/extension_management.cc

Issue 2539363004: Make base::Value::TYPE a scoped enum. (Closed)
Patch Set: Rebase Created 4 years 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
Index: chrome/browser/extensions/extension_management.cc
diff --git a/chrome/browser/extensions/extension_management.cc b/chrome/browser/extensions/extension_management.cc
index aff5c2cb2c75b9a6016709762e0dd03eb11ec2fe..7af13aff7c7652d262be7799d952b2029d221573 100644
--- a/chrome/browser/extensions/extension_management.cc
+++ b/chrome/browser/extensions/extension_management.cc
@@ -250,26 +250,26 @@ void ExtensionManagement::Refresh() {
// Load all extension management settings preferences.
const base::ListValue* allowed_list_pref =
static_cast<const base::ListValue*>(LoadPreference(
- pref_names::kInstallAllowList, true, base::Value::TYPE_LIST));
+ pref_names::kInstallAllowList, true, base::Value::Type::LIST));
// Allow user to use preference to block certain extensions. Note that policy
// managed forcelist or whitelist will always override this.
const base::ListValue* denied_list_pref =
static_cast<const base::ListValue*>(LoadPreference(
- pref_names::kInstallDenyList, false, base::Value::TYPE_LIST));
+ pref_names::kInstallDenyList, false, base::Value::Type::LIST));
const base::DictionaryValue* forced_list_pref =
static_cast<const base::DictionaryValue*>(LoadPreference(
- pref_names::kInstallForceList, true, base::Value::TYPE_DICTIONARY));
+ pref_names::kInstallForceList, true, base::Value::Type::DICTIONARY));
const base::ListValue* install_sources_pref =
static_cast<const base::ListValue*>(LoadPreference(
- pref_names::kAllowedInstallSites, true, base::Value::TYPE_LIST));
+ pref_names::kAllowedInstallSites, true, base::Value::Type::LIST));
const base::ListValue* allowed_types_pref =
static_cast<const base::ListValue*>(LoadPreference(
- pref_names::kAllowedTypes, true, base::Value::TYPE_LIST));
+ pref_names::kAllowedTypes, true, base::Value::Type::LIST));
const base::DictionaryValue* dict_pref =
static_cast<const base::DictionaryValue*>(
LoadPreference(pref_names::kExtensionManagement,
true,
- base::Value::TYPE_DICTIONARY));
+ base::Value::Type::DICTIONARY));
// Reset all settings.
global_settings_.reset(new internal::GlobalSettings());

Powered by Google App Engine
This is Rietveld 408576698