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

Unified Diff: chrome/browser/extensions/extension_input_ui_api.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
Index: chrome/browser/extensions/extension_input_ui_api.cc
diff --git a/chrome/browser/extensions/extension_input_ui_api.cc b/chrome/browser/extensions/extension_input_ui_api.cc
index 0024d758cc81ee1d79149bf5f42c31a14f0712c0..0561a9b18118b6ed926b65f430e9d3da99123b0c 100644
--- a/chrome/browser/extensions/extension_input_ui_api.cc
+++ b/chrome/browser/extensions/extension_input_ui_api.cc
@@ -113,7 +113,7 @@ void ExtensionInputUiEventRouter::OnHideLookupTable() {
args.Append(dict);
std::string json_args;
- base::JSONWriter::Write(&args, false, &json_args);
+ base::JSONWriter::Write(&args, &json_args);
profile_->GetExtensionEventRouter()->DispatchEventToExtension(
extension_id_, events::kOnUpdateLookupTable, json_args, profile_, GURL());
}
@@ -134,7 +134,7 @@ void ExtensionInputUiEventRouter::OnSetCursorLocation(
args.Append(Value::CreateIntegerValue(height));
std::string json_args;
- base::JSONWriter::Write(&args, false, &json_args);
+ base::JSONWriter::Write(&args, &json_args);
profile_->GetExtensionEventRouter()->DispatchEventToExtension(
extension_id_, events::kOnSetCursorLocation, json_args, profile_, GURL());
}
@@ -149,7 +149,7 @@ void ExtensionInputUiEventRouter::OnUpdateAuxiliaryText(
args.Append(Value::CreateStringValue(visible ? utf8_text : ""));
std::string json_args;
- base::JSONWriter::Write(&args, false, &json_args);
+ base::JSONWriter::Write(&args, &json_args);
profile_->GetExtensionEventRouter()->DispatchEventToExtension(
extension_id_, events::kOnUpdateAuxiliaryText, json_args, profile_, GURL());
}
@@ -182,7 +182,7 @@ void ExtensionInputUiEventRouter::OnUpdateLookupTable(
args.Append(dict);
std::string json_args;
- base::JSONWriter::Write(&args, false, &json_args);
+ base::JSONWriter::Write(&args, &json_args);
profile_->GetExtensionEventRouter()->DispatchEventToExtension(
extension_id_, events::kOnUpdateLookupTable, json_args, profile_, GURL());
}
« no previous file with comments | « chrome/browser/extensions/extension_input_ime_api.cc ('k') | chrome/browser/extensions/extension_management_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698