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

Unified Diff: extensions/browser/extension_prefs.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
« no previous file with comments | « extensions/browser/extension_prefs.h ('k') | extensions/browser/verified_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_prefs.cc
diff --git a/extensions/browser/extension_prefs.cc b/extensions/browser/extension_prefs.cc
index 657da2190da86ae51bae0db10f2bfb0c4f799787..a3ade026ba36ea548bc0fb61619934e47309cc24 100644
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -332,9 +332,9 @@ T* ExtensionPrefs::ScopedUpdate<T, type_enum_value>::Create() {
// Explicit instantiations for Dictionary and List value types.
template class ExtensionPrefs::ScopedUpdate<base::DictionaryValue,
- base::Value::TYPE_DICTIONARY>;
+ base::Value::Type::DICTIONARY>;
template class ExtensionPrefs::ScopedUpdate<base::ListValue,
- base::Value::TYPE_LIST>;
+ base::Value::Type::LIST>;
//
// ExtensionPrefs
@@ -818,7 +818,7 @@ std::set<std::string> ExtensionPrefs::GetBlacklistedExtensions() const {
for (base::DictionaryValue::Iterator it(*extensions);
!it.IsAtEnd(); it.Advance()) {
- if (!it.value().IsType(base::Value::TYPE_DICTIONARY)) {
+ if (!it.value().IsType(base::Value::Type::DICTIONARY)) {
NOTREACHED() << "Invalid pref for extension " << it.key();
continue;
}
« no previous file with comments | « extensions/browser/extension_prefs.h ('k') | extensions/browser/verified_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698