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

Unified Diff: components/plugins/renderer/plugin_placeholder.cc

Issue 100823007: Stop doing unnecessary UTF-8 to UTF-16 conversions in JSONWriter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ChromeOS page encodings Created 7 years 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/test/chromedriver/chrome/adb_impl.cc ('k') | jingle/notifier/listener/notification_defines.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/plugin_placeholder.cc
diff --git a/components/plugins/renderer/plugin_placeholder.cc b/components/plugins/renderer/plugin_placeholder.cc
index 3c3d9f78cdb10501da497f09382be68c3a66a623..df85dd562bd181041fd12c095143e0a83406458a 100644
--- a/components/plugins/renderer/plugin_placeholder.cc
+++ b/components/plugins/renderer/plugin_placeholder.cc
@@ -162,7 +162,7 @@ void PluginPlaceholder::SetMessage(const base::string16& message) {
void PluginPlaceholder::UpdateMessage() {
std::string script =
- "window.setMessage(" + base::GetDoubleQuotedJson(message_) + ")";
+ "window.setMessage(" + base::GetQuotedJSONString(message_) + ")";
plugin_->web_view()->mainFrame()->executeScript(
WebScriptSource(ASCIIToUTF16(script)));
}
« no previous file with comments | « chrome/test/chromedriver/chrome/adb_impl.cc ('k') | jingle/notifier/listener/notification_defines.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698