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

Unified Diff: content/public/test/render_view_test.cc

Issue 2648433008: Use explicit WebString conversions in LayoutTest related files (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
Index: content/public/test/render_view_test.cc
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc
index 83679237b013c7f7cb66c427ecc43aa6f2f4a0cd..0eefe39f067a25fb8e03dfd5a5bca7ef0d2e7bcd 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -175,8 +175,8 @@ bool RenderViewTest::ExecuteJavaScriptAndReturnIntValue(
const base::string16& script,
int* int_result) {
v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
- v8::Local<v8::Value> result =
- GetMainFrame()->executeScriptAndReturnValue(WebScriptSource(script));
+ v8::Local<v8::Value> result = GetMainFrame()->executeScriptAndReturnValue(
+ WebScriptSource(blink::WebString::fromUTF16(script)));
if (result.IsEmpty() || !result->IsInt32())
return false;
« no previous file with comments | « components/test_runner/web_view_test_client.cc ('k') | content/shell/renderer/layout_test/blink_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698