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

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

Issue 2655853002: Use explicit WebString conversions in plugins code (Closed)
Patch Set: Created 3 years, 11 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/renderer/plugins/chrome_plugin_placeholder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/loadable_plugin_placeholder.cc
diff --git a/components/plugins/renderer/loadable_plugin_placeholder.cc b/components/plugins/renderer/loadable_plugin_placeholder.cc
index 3496764e1d5d03c2dc7d4f376dab4d61b3eaf235..8bffae8705f710771a838e011580c2cc4896ff16 100644
--- a/components/plugins/renderer/loadable_plugin_placeholder.cc
+++ b/components/plugins/renderer/loadable_plugin_placeholder.cc
@@ -146,7 +146,7 @@ void LoadablePluginPlaceholder::UpdateMessage() {
std::string script =
"window.setMessage(" + base::GetQuotedJSONString(message_) + ")";
plugin()->web_view()->mainFrame()->executeScript(
- blink::WebScriptSource(base::UTF8ToUTF16(script)));
+ blink::WebScriptSource(blink::WebString::fromUTF8(script)));
}
void LoadablePluginPlaceholder::PluginDestroyed() {
@@ -246,7 +246,7 @@ void LoadablePluginPlaceholder::OnUnobscuredRectUpdate(
"window.resizePoster('%dpx', '%dpx', '%dpx', '%dpx')", x, y, width,
height);
plugin()->web_view()->mainFrame()->executeScript(
- blink::WebScriptSource(base::UTF8ToUTF16(script)));
+ blink::WebScriptSource(blink::WebString::fromUTF8(script)));
}
}
« no previous file with comments | « chrome/renderer/plugins/chrome_plugin_placeholder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698