Index: components/dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc |
diff --git a/components/dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc b/components/dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc |
index 97c48d69a89dcc14b594239d70aacf110da36a4d..44572d2d15d16b6f085ca4d5d4943cc9730913c1 100644 |
--- a/components/dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc |
+++ b/components/dom_distiller/content/browser/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))); |