| 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 169f8da2b04d6e32a15ab6fd9a6c1b20467985a8..8b6c1156be08f3f7e188bf017266d063be298d1f 100644
|
| --- a/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc
|
| +++ b/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc
|
| @@ -213,7 +213,8 @@ class DelayLoadStartAndExecuteJavascript
|
| rvh_->GetMainFrame()->ExecuteJavaScriptWithUserGestureForTests(
|
| base::UTF8ToUTF16(script_));
|
| } else {
|
| - rvh_->GetMainFrame()->ExecuteJavaScript(base::UTF8ToUTF16(script_));
|
| + rvh_->GetMainFrame()->ExecuteJavaScriptForTests(
|
| + base::UTF8ToUTF16(script_));
|
| }
|
| script_was_executed_ = true;
|
| }
|
| @@ -673,7 +674,8 @@ IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, CrossProcessAbort) {
|
| // Ensure the cross-site navigation has started, then execute JavaScript
|
| // to cause the renderer-initiated, non-user navigation.
|
| cross_site_load.Wait();
|
| - tab->GetMainFrame()->ExecuteJavaScript(base::UTF8ToUTF16("navigate2()"));
|
| + tab->GetMainFrame()->ExecuteJavaScriptForTests(
|
| + base::UTF8ToUTF16("navigate2()"));
|
|
|
| // Wait for the same-site navigation to start and resume the cross-site
|
| // one, allowing it to commit.
|
|
|