Index: components/dom_distiller/content/test/dom_distiller_js_browsertest.cc |
diff --git a/components/dom_distiller/content/test/dom_distiller_js_browsertest.cc b/components/dom_distiller/content/test/dom_distiller_js_browsertest.cc |
index 2bfb501b759e7086181a893f6f1e16dbcdf34897..0a772c89d2ce341c7d85030369eefb8fdc949ed7 100644 |
--- a/components/dom_distiller/content/test/dom_distiller_js_browsertest.cc |
+++ b/components/dom_distiller/content/test/dom_distiller_js_browsertest.cc |
@@ -121,7 +121,7 @@ IN_PROC_BROWSER_TEST_F(DomDistillerJsTest, RunJsTests) { |
// QuitClosure multiple times. |
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
FROM_HERE, run_loop.QuitClosure(), base::TimeDelta::FromSeconds(15)); |
- web_contents->GetMainFrame()->ExecuteJavaScript( |
+ web_contents->GetMainFrame()->ExecuteJavaScriptForTests( |
base::UTF8ToUTF16(kRunJsTestsJs), |
base::Bind(&DomDistillerJsTest::OnJsTestExecutionDone, |
base::Unretained(this))); |