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

Unified Diff: chrome/common/json_value_serializer.cc

Issue 17047: Update some comments/nits following r7486. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 12 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/json_value_serializer.h ('k') | no next file » | 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 7536)
+++ chrome/common/json_value_serializer.cc (working copy)
@@ -23,7 +23,7 @@
Value* JSONStringValueSerializer::Deserialize(std::string* error_message) {
if (!json_string_)
- return false;
+ return NULL;
return JSONReader::ReadAndReturnError(*json_string_, allow_trailing_comma_,
error_message);
@@ -51,7 +51,7 @@
Value* JSONFileValueSerializer::Deserialize(std::string* error_message) {
std::string json_string;
if (!file_util::ReadFileToString(json_file_path_, &json_string)) {
- return false;
+ return NULL;
}
JSONStringValueSerializer serializer(json_string);
return serializer.Deserialize(error_message);
« no previous file with comments | « chrome/common/json_value_serializer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698