| Index: chrome/browser/extensions/window_open_apitest.cc
|
| diff --git a/chrome/browser/extensions/window_open_apitest.cc b/chrome/browser/extensions/window_open_apitest.cc
|
| index f2d77fbfe07ce6dcc59be1f40b46218037b8662a..1c8a406c9ac0eda1e07766a4562c52f81ece5e75 100644
|
| --- a/chrome/browser/extensions/window_open_apitest.cc
|
| +++ b/chrome/browser/extensions/window_open_apitest.cc
|
| @@ -391,8 +391,8 @@ IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, WindowOpenExtension) {
|
| start_url.Resolve("newtab.html"), true, &newtab));
|
|
|
| bool result = false;
|
| - ASSERT_TRUE(content::ExecuteJavaScriptAndExtractBool(
|
| - newtab->GetRenderViewHost(), "", "testExtensionApi()", &result));
|
| + ASSERT_TRUE(content::ExecuteScriptAndExtractBool(newtab, "testExtensionApi()",
|
| + &result));
|
| EXPECT_TRUE(result);
|
| }
|
|
|
| @@ -428,7 +428,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, WindowOpenNoPrivileges) {
|
|
|
| // Extension API should succeed.
|
| bool result = false;
|
| - ASSERT_TRUE(content::ExecuteJavaScriptAndExtractBool(
|
| - newtab->GetRenderViewHost(), "", "testExtensionApi()", &result));
|
| + ASSERT_TRUE(content::ExecuteScriptAndExtractBool(newtab, "testExtensionApi()",
|
| + &result));
|
| EXPECT_TRUE(result);
|
| }
|
|
|