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

Unified Diff: chrome/browser/chrome_to_mobile_service.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/chrome_to_mobile_service.cc
diff --git a/chrome/browser/chrome_to_mobile_service.cc b/chrome/browser/chrome_to_mobile_service.cc
index bbe3b93ca75d432f83d7f1cbe8b70f48e96ea532..96f7bf2c3ad15463f231bab81742fe822f1c1355 100644
--- a/chrome/browser/chrome_to_mobile_service.cc
+++ b/chrome/browser/chrome_to_mobile_service.cc
@@ -406,7 +406,7 @@ void ChromeToMobileService::HandleAccountInfoResponse() {
ListValue* services = NULL;
DictionaryValue* dictionary = NULL;
- scoped_ptr<Value> json(base::JSONReader::Read(data, false));
+ scoped_ptr<Value> json(base::JSONReader::Read(data));
StringValue cloud_print_service(kCloudPrintSerivceValue);
if (json.get() && json->GetAsDictionary(&dictionary) && dictionary &&
dictionary->GetList(kAccountServicesKey, &services) && services &&
@@ -425,7 +425,7 @@ void ChromeToMobileService::HandleSearchResponse() {
ListValue* list = NULL;
DictionaryValue* dictionary = NULL;
- scoped_ptr<Value> json(base::JSONReader::Read(data, false));
+ scoped_ptr<Value> json(base::JSONReader::Read(data));
if (json.get() && json->GetAsDictionary(&dictionary) && dictionary &&
dictionary->GetList(cloud_print::kPrinterListValue, &list)) {
ScopedVector<base::DictionaryValue> mobiles;
@@ -463,7 +463,7 @@ void ChromeToMobileService::HandleSubmitResponse(
source->GetResponseAsString(&data);
bool success = false;
DictionaryValue* dictionary = NULL;
- scoped_ptr<Value> json(base::JSONReader::Read(data, false));
+ scoped_ptr<Value> json(base::JSONReader::Read(data));
if (json.get() && json->GetAsDictionary(&dictionary) && dictionary)
dictionary->GetBoolean("success", &success);

Powered by Google App Engine
This is Rietveld 408576698