Index: components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc |
diff --git a/components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc b/components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc |
index ac503d9859ee365381ddfc71d0c4ec8f1342d156..99f40f0b9d8e2fdff67594f2beafd62a88ba25f4 100644 |
--- a/components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc |
+++ b/components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc |
@@ -504,7 +504,7 @@ |
// Execute the JS to run the tests, and wait until it has finished. |
base::RunLoop run_loop; |
- web_contents->GetMainFrame()->ExecuteJavaScriptForTests( |
+ web_contents->GetMainFrame()->ExecuteJavaScript( |
base::UTF8ToUTF16("(function() {return pinchtest.run();})();"), |
base::Bind(&DistillerPageWebContentsTest::OnJsExecutionDone, |
base::Unretained(this), run_loop.QuitClosure())); |