Index: chrome/browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc |
diff --git a/chrome/browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc b/chrome/browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc |
index 1f8e7670bdd28df0d111a30dc892fafd26233f42..617247f1f020417614054682f9503fef36e3e538 100644 |
--- a/chrome/browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc |
+++ b/chrome/browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc |
@@ -108,7 +108,7 @@ class MediaGalleriesGalleryWatchApiTest : public ExtensionApiTest { |
void ExecuteCmdAndCheckReply(const std::string& js_command, |
const std::string& ok_message) { |
ExtensionTestMessageListener listener(ok_message, false); |
- background_host_->GetMainFrame()->ExecuteJavaScript( |
+ background_host_->GetMainFrame()->ExecuteJavaScriptForTests( |
base::ASCIIToUTF16(js_command)); |
EXPECT_TRUE(listener.WaitUntilSatisfied()); |
} |