| 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)));
|
| }
|
| }
|
|
|
|
|