Index: chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
diff --git a/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc b/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
index 09a26804aa8fbe50f47fc2271818d480ec801138..0f58e84b04689dde5ffe465ffe8d882707b726d4 100644 |
--- a/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
+++ b/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
@@ -213,8 +213,7 @@ |
rvh_->GetMainFrame()->ExecuteJavaScriptWithUserGestureForTests( |
base::UTF8ToUTF16(script_)); |
} else { |
- rvh_->GetMainFrame()->ExecuteJavaScriptForTests( |
- base::UTF8ToUTF16(script_)); |
+ rvh_->GetMainFrame()->ExecuteJavaScript(base::UTF8ToUTF16(script_)); |
} |
script_was_executed_ = true; |
} |
@@ -675,8 +674,7 @@ |
// Ensure the cross-site navigation has started, then execute JavaScript |
// to cause the renderer-initiated, non-user navigation. |
cross_site_load.Wait(); |
- tab->GetMainFrame()->ExecuteJavaScriptForTests( |
- base::UTF8ToUTF16("navigate2()")); |
+ tab->GetMainFrame()->ExecuteJavaScript(base::UTF8ToUTF16("navigate2()")); |
// Wait for the same-site navigation to start and resume the cross-site |
// one, allowing it to commit. |