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

Unified Diff: chrome/common/json_pref_store.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tony review Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/extension_unpacker.cc ('k') | chrome/common/json_schema_validator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/json_pref_store.cc
diff --git a/chrome/common/json_pref_store.cc b/chrome/common/json_pref_store.cc
index f3bd776dce11acb11d5dda4a116f3ce9ae683929..c10de1b4a0bd42ee146ee96cf5f056c2dc05f103 100644
--- a/chrome/common/json_pref_store.cc
+++ b/chrome/common/json_pref_store.cc
@@ -129,7 +129,7 @@ void FileThreadDeserializer::HandleErrors(
file_util::Move(path, bad);
break;
}
- } else if (!value->IsType(Value::TYPE_DICTIONARY)) {
+ } else if (!value->IsDictionary()) {
*error = PersistentPrefStore::PREF_READ_ERROR_JSON_TYPE;
}
}
« no previous file with comments | « chrome/common/extensions/extension_unpacker.cc ('k') | chrome/common/json_schema_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698