Index: chrome/browser/extensions/alert_apitest.cc |
diff --git a/chrome/browser/extensions/alert_apitest.cc b/chrome/browser/extensions/alert_apitest.cc |
index 9aece0353b4423463cb74a3ae8747582cf5e790a..753f149a0ed868fb6f4987114382467611458969 100644 |
--- a/chrome/browser/extensions/alert_apitest.cc |
+++ b/chrome/browser/extensions/alert_apitest.cc |
@@ -21,7 +21,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, AlertBasic) { |
extensions::ProcessManager::Get(browser()->profile()) |
->GetBackgroundHostForExtension(extension->id()); |
ASSERT_TRUE(host); |
- host->host_contents()->GetMainFrame()->ExecuteJavaScript( |
+ host->host_contents()->GetMainFrame()->ExecuteJavaScriptForTests( |
base::ASCIIToUTF16("alert('This should not crash.');")); |
app_modal::AppModalDialog* alert = ui_test_utils::WaitForAppModalDialog(); |