| Index: chrome/browser/ui/webui/ntp/new_tab_ui_browsertest.cc
|
| diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui_browsertest.cc b/chrome/browser/ui/webui/ntp/new_tab_ui_browsertest.cc
|
| index d9af2ce8a344c516b72393cae6138f1661d4e03f..9039447b05d408881d087367d5c43d3c4f5f26d5 100644
|
| --- a/chrome/browser/ui/webui/ntp/new_tab_ui_browsertest.cc
|
| +++ b/chrome/browser/ui/webui/ntp/new_tab_ui_browsertest.cc
|
| @@ -33,9 +33,8 @@ IN_PROC_BROWSER_TEST_F(NewTabUIBrowserTest, ChromeInternalLoadsNTP) {
|
| // Ensure that we get there by checking for non-empty page content.
|
| ui_test_utils::NavigateToURL(browser(), GURL("chrome-internal:"));
|
| bool empty_inner_html = false;
|
| - ASSERT_TRUE(content::ExecuteJavaScriptAndExtractBool(
|
| - browser()->tab_strip_model()->GetWebContentsAt(0)->GetRenderViewHost(),
|
| - "",
|
| + ASSERT_TRUE(content::ExecuteScriptAndExtractBool(
|
| + browser()->tab_strip_model()->GetWebContentsAt(0),
|
| "window.domAutomationController.send(document.body.innerHTML == '')",
|
| &empty_inner_html));
|
| ASSERT_FALSE(empty_inner_html);
|
|
|