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