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

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

Issue 2537953003: WebString: makes string16 conversions explicit (part 1: blink, content) (Closed)
Patch Set: fix Created 4 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
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 146ebf6f3cc0bcd7bb130551938dfe1f14804370..64a54488c43fc66d52286a6bbc8a62832b79dccf 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -172,8 +172,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 | « content/public/common/window_container_type.cc ('k') | content/renderer/accessibility/render_accessibility_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698