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

Unified Diff: chrome/common/json_value_serializer.cc

Issue 316016: Move the json-related files into a separate json directory. This hopefully al... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/browser/sync/sync_setup_wizard_unittest.cc ('k') | chrome/common/json_value_serializer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/json_value_serializer.cc
===================================================================
--- chrome/common/json_value_serializer.cc (revision 29830)
+++ chrome/common/json_value_serializer.cc (working copy)
@@ -5,8 +5,8 @@
#include "chrome/common/json_value_serializer.h"
#include "base/file_util.h"
-#include "base/json_reader.h"
-#include "base/json_writer.h"
+#include "base/json/json_reader.h"
+#include "base/json/json_writer.h"
#include "base/string_util.h"
JSONStringValueSerializer::~JSONStringValueSerializer() {}
@@ -15,8 +15,7 @@
if (!json_string_ || initialized_with_const_string_)
return false;
- JSONWriter::Write(&root, pretty_print_, json_string_);
-
+ base::JSONWriter::Write(&root, pretty_print_, json_string_);
return true;
}
@@ -24,8 +23,9 @@
if (!json_string_)
return NULL;
- return JSONReader::ReadAndReturnError(*json_string_, allow_trailing_comma_,
- error_message);
+ return base::JSONReader::ReadAndReturnError(*json_string_,
+ allow_trailing_comma_,
+ error_message);
}
/******* File Serializer *******/
« no previous file with comments | « chrome/browser/sync/sync_setup_wizard_unittest.cc ('k') | chrome/common/json_value_serializer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698