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

Unified Diff: components/prefs/json_pref_store.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: components/prefs/json_pref_store.cc
diff --git a/components/prefs/json_pref_store.cc b/components/prefs/json_pref_store.cc
index 4076433dbb84dcb9c3c5b2295ad70693b5b78cba..026606a7b762fb3cbac735ec1e5bd068a12bf205 100644
--- a/components/prefs/json_pref_store.cc
+++ b/components/prefs/json_pref_store.cc
@@ -89,7 +89,7 @@ PersistentPrefStore::PrefReadError HandleReadErrors(
: PersistentPrefStore::PREF_READ_ERROR_JSON_PARSE;
}
}
- if (!value->IsType(base::Value::TYPE_DICTIONARY))
+ if (!value->IsType(base::Value::Type::DICTIONARY))
return PersistentPrefStore::PREF_READ_ERROR_JSON_TYPE;
return PersistentPrefStore::PREF_READ_ERROR_NONE;
}
« no previous file with comments | « components/policy/tools/generate_policy_source.py ('k') | components/prefs/overlay_user_pref_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698