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

Unified Diff: chrome/browser/speech/speech_input_extension_manager.cc

Issue 9590002: JSONWriter cleanup: integrate pretty print into write options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflict 7. Created 8 years, 9 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/printing/cloud_print/cloud_print_setup_flow.cc ('k') | chrome/browser/sync/api/sync_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/speech_input_extension_manager.cc
diff --git a/chrome/browser/speech/speech_input_extension_manager.cc b/chrome/browser/speech/speech_input_extension_manager.cc
index 7bfc14fced7cedf69fd40b0d0c9a4113b5627f46..656f28255aa698664de2297370711d2f2eac59ba 100644
--- a/chrome/browser/speech/speech_input_extension_manager.cc
+++ b/chrome/browser/speech/speech_input_extension_manager.cc
@@ -278,7 +278,7 @@ void SpeechInputExtensionManager::SetRecognitionResultOnUIThread(
}
std::string json_args;
- base::JSONWriter::Write(&args, false, &json_args);
+ base::JSONWriter::Write(&args, &json_args);
VLOG(1) << "Results: " << json_args;
DispatchEventToExtension(extension_id, kOnResultEvent, json_args);
}
@@ -441,7 +441,7 @@ void SpeechInputExtensionManager::DispatchEventToExtension(
std::string final_args;
if (json_args.empty()) {
ListValue args;
- base::JSONWriter::Write(&args, false, &final_args);
+ base::JSONWriter::Write(&args, &final_args);
} else {
final_args = json_args;
}
@@ -484,7 +484,7 @@ void SpeechInputExtensionManager::DispatchError(
args.Append(js_error);
js_error->SetString(kErrorCodeKey, error);
std::string json_args;
- base::JSONWriter::Write(&args, false, &json_args);
+ base::JSONWriter::Write(&args, &json_args);
DispatchEventToExtension(extension_id,
kOnErrorEvent, json_args);
}
« no previous file with comments | « chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc ('k') | chrome/browser/sync/api/sync_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698