Index: chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc |
diff --git a/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc b/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc |
index bb7ddefbe6eafe2bd4e6ddc1dd783b27fa952b03..28a03e50fe4973cb45d1b3fa021734c12b30627a 100644 |
--- a/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc |
+++ b/chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc |
@@ -212,7 +212,7 @@ class SelectFileDialogExtensionBrowserTest : public ExtensionBrowserTest { |
"document.querySelector(\'" + button_class + "\').click();"); |
// The file selection handler closes the dialog and does not return control |
// to JavaScript, so do not wait for return values. |
- host->GetMainFrame()->ExecuteJavaScript(script); |
+ host->GetMainFrame()->ExecuteJavaScriptForTests(script); |
LOG(INFO) << "Waiting for window close notification."; |
listener_->WaitForCalled(); |