Index: chrome/browser/extensions/webstore_standalone_install_browsertest.cc |
diff --git a/chrome/browser/extensions/webstore_standalone_install_browsertest.cc b/chrome/browser/extensions/webstore_standalone_install_browsertest.cc |
index 4b7296a5f298639102869bdf07aa75d6a93e7ff9..4a4e45736233684bbd0c4dd1aa9520058d4afe47 100644 |
--- a/chrome/browser/extensions/webstore_standalone_install_browsertest.cc |
+++ b/chrome/browser/extensions/webstore_standalone_install_browsertest.cc |
@@ -84,9 +84,8 @@ class WebstoreStandaloneInstallTest : public InProcessBrowserTest { |
bool result = false; |
std::string script = StringPrintf("%s('%s')", test_function_name.c_str(), |
test_gallery_url_.c_str()); |
- ASSERT_TRUE(content::ExecuteJavaScriptAndExtractBool( |
- chrome::GetActiveWebContents(browser())->GetRenderViewHost(), |
- "", |
+ ASSERT_TRUE(content::ExecuteScriptAndExtractBool( |
+ chrome::GetActiveWebContents(browser()), |
script, |
&result)); |
EXPECT_TRUE(result); |