| Index: chrome/browser/content_settings/content_settings_browsertest.cc
|
| diff --git a/chrome/browser/content_settings/content_settings_browsertest.cc b/chrome/browser/content_settings/content_settings_browsertest.cc
|
| index c2ff3e27ad893d2dd8ac1ce0cecebb0d12426090..b34c95b1e097114533e971b9aa07adba31f78e26 100644
|
| --- a/chrome/browser/content_settings/content_settings_browsertest.cc
|
| +++ b/chrome/browser/content_settings/content_settings_browsertest.cc
|
| @@ -379,10 +379,8 @@ IN_PROC_BROWSER_TEST_F(ClickToPlayPluginTest, LoadAllBlockedPlugins) {
|
| content::TitleWatcher title_watcher2(
|
| chrome::GetActiveWebContents(browser()), expected_title2);
|
|
|
| - ASSERT_TRUE(content::ExecuteJavaScript(
|
| - chrome::GetActiveWebContents(browser())->GetRenderViewHost(),
|
| - "",
|
| - "window.inject()"));
|
| + ASSERT_TRUE(content::ExecuteScript(
|
| + chrome::GetActiveWebContents(browser()), "window.inject()"));
|
|
|
| EXPECT_EQ(expected_title2, title_watcher2.WaitAndGetTitle());
|
| }
|
| @@ -396,9 +394,8 @@ IN_PROC_BROWSER_TEST_F(ClickToPlayPluginTest, NoCallbackAtLoad) {
|
| ui_test_utils::NavigateToURL(browser(), url);
|
|
|
| // Inject the callback function into the HTML page generated by the browser.
|
| - ASSERT_TRUE(content::ExecuteJavaScript(
|
| - chrome::GetActiveWebContents(browser())->GetRenderViewHost(),
|
| - "",
|
| + ASSERT_TRUE(content::ExecuteScript(
|
| + chrome::GetActiveWebContents(browser()),
|
| "CallOnStartup = function() { document.title = \"OK\"; }"));
|
|
|
| string16 expected_title(ASCIIToUTF16("OK"));
|
|
|