Index: content/public/test/test_utils.cc |
diff --git a/content/public/test/test_utils.cc b/content/public/test/test_utils.cc |
index 4293f399d97612ea632965f0f2df7cebb3fee947..8158eeeef239e1caf8b874c6bf4f0e262e7a0990 100644 |
--- a/content/public/test/test_utils.cc |
+++ b/content/public/test/test_utils.cc |
@@ -175,7 +175,7 @@ scoped_ptr<base::Value> ExecuteScriptAndGetValue( |
RenderFrameHost* render_frame_host, const std::string& script) { |
ScriptCallback observer; |
- render_frame_host->ExecuteJavaScript( |
+ render_frame_host->ExecuteJavaScriptForTests( |
base::UTF8ToUTF16(script), |
base::Bind(&ScriptCallback::ResultCallback, base::Unretained(&observer))); |
base::MessageLoop* loop = base::MessageLoop::current(); |