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

Unified Diff: chrome/common/pref_service.cc

Issue 13169: Add error messages to JSONReader and friends. This required a bit of refactor... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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/common/pref_service.cc
===================================================================
--- chrome/common/pref_service.cc (revision 6390)
+++ chrome/common/pref_service.cc (working copy)
@@ -137,7 +137,7 @@
JSONFileValueSerializer serializer(file_path);
Value* root = NULL;
- if (serializer.Deserialize(&root)) {
+ if (serializer.Deserialize(&root, NULL)) {
// Preferences should always have a dictionary root.
if (!root->IsType(Value::TYPE_DICTIONARY)) {
delete root;
@@ -156,7 +156,7 @@
JSONFileValueSerializer serializer(pref_filename_);
Value* root;
- if (serializer.Deserialize(&root)) {
+ if (serializer.Deserialize(&root, NULL)) {
// Preferences should always have a dictionary root.
if (!root->IsType(Value::TYPE_DICTIONARY)) {
delete root;

Powered by Google App Engine
This is Rietveld 408576698