Index: components/printing/test/print_web_view_helper_browsertest.cc |
diff --git a/components/printing/test/print_web_view_helper_browsertest.cc b/components/printing/test/print_web_view_helper_browsertest.cc |
index 28d25231ff507568f9cf9a11ec2bc8bf258abbd5..c1eb5847f6450a4c3953a85a12fc2e9b8dc768ef 100644 |
--- a/components/printing/test/print_web_view_helper_browsertest.cc |
+++ b/components/printing/test/print_web_view_helper_browsertest.cc |
@@ -153,7 +153,7 @@ class PrintWebViewHelperTestBase : public content::RenderViewTest { |
} |
void PrintWithJavaScript() { |
- ExecuteJavaScript("window.print();"); |
+ ExecuteJavaScriptForTests("window.print();"); |
ProcessPendingMessages(); |
} |
// The renderer should be done calculating the number of rendered pages |