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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system.cc

Issue 9960077: Modify the base::JSONReader interface to take a set of options rather than a boolean flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 8 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
Index: chrome/browser/chromeos/gdata/gdata_file_system.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.cc b/chrome/browser/chromeos/gdata/gdata_file_system.cc
index a06a7a2f0c7b5228b21356dc5b73ed5c6c8b161a..c997c2c54edf23f8ba66bf41d7a1278464308088 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc
@@ -2237,7 +2237,8 @@ void GDataFileSystem::LoadJsonFileOnIOThreadPool(
int unused_error_code = -1;
std::string unused_error_message;
root_value.reset(base::JSONReader::ReadAndReturnError(
- contents, false, &unused_error_code, &unused_error_message));
+ contents, base::JSON_PARSE_RFC, &unused_error_code,
+ &unused_error_message));
bool has_root = root_value.get();
if (!has_root)

Powered by Google App Engine
This is Rietveld 408576698