Index: chrome/browser/apps/custom_launcher_page_browsertest_views.cc |
diff --git a/chrome/browser/apps/custom_launcher_page_browsertest_views.cc b/chrome/browser/apps/custom_launcher_page_browsertest_views.cc |
index eb8aea103b038419bd586748c047d9248ab5cd47..f39ec2e52b06b5d906e2292f9c3f4b99cc18ddf6 100644 |
--- a/chrome/browser/apps/custom_launcher_page_browsertest_views.cc |
+++ b/chrome/browser/apps/custom_launcher_page_browsertest_views.cc |
@@ -113,8 +113,8 @@ |
enabled ? "launcherPageEnabled" : "launcherPageDisabled"; |
ExtensionTestMessageListener listener(test_message, false); |
- custom_page_frame->ExecuteJavaScriptForTests( |
- enabled ? kLauncherPageEnableScript : kLauncherPageDisableScript); |
+ custom_page_frame->ExecuteJavaScript(enabled ? kLauncherPageEnableScript |
+ : kLauncherPageDisableScript); |
listener.WaitUntilSatisfied(); |
} |
@@ -339,7 +339,7 @@ |
// if the app launcher is already showing. |
{ |
ExtensionTestMessageListener listener("onPageProgressAt1", false); |
- custom_page_frame->ExecuteJavaScriptForTests(kLauncherPageShowScript); |
+ custom_page_frame->ExecuteJavaScript(kLauncherPageShowScript); |
listener.WaitUntilSatisfied(); |
EXPECT_TRUE(contents_view->IsStateActive( |
@@ -353,7 +353,7 @@ |
app_list_view->GetWidget()->Close(); |
ExtensionTestMessageListener listener("onPageProgressAt1", false); |
- custom_page_frame->ExecuteJavaScriptForTests(kLauncherPageShowScript); |
+ custom_page_frame->ExecuteJavaScript(kLauncherPageShowScript); |
listener.WaitUntilSatisfied(); |
@@ -367,7 +367,7 @@ |
// Ensure launcherPage.hide() hides the launcher page when it's showing. |
{ |
ExtensionTestMessageListener listener("onPageProgressAt0", false); |
- custom_page_frame->ExecuteJavaScriptForTests(kLauncherPageHideScript); |
+ custom_page_frame->ExecuteJavaScript(kLauncherPageHideScript); |
listener.WaitUntilSatisfied(); |
@@ -380,7 +380,7 @@ |
contents_view->SetActiveState(app_list::AppListModel::STATE_APPS, false); |
ExtensionTestMessageListener listener("launcherPageHidden", false); |
- custom_page_frame->ExecuteJavaScriptForTests(kLauncherPageHideScript); |
+ custom_page_frame->ExecuteJavaScript(kLauncherPageHideScript); |
listener.WaitUntilSatisfied(); |
EXPECT_TRUE( |