summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/tab_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/automation/tab_proxy.cc')
-rw-r--r--chrome/test/automation/tab_proxy.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc
index 91cdd1b..a63e08a 100644
--- a/chrome/test/automation/tab_proxy.cc
+++ b/chrome/test/automation/tab_proxy.cc
@@ -723,17 +723,17 @@ bool TabProxy::GetDownloadDirectory(std::wstring* download_directory) {
return true;
}
-bool TabProxy::ShowInterstitialPage(const std::string& html_text) {
+bool TabProxy::ShowInterstitialPage(const std::string& html_text,
+ int timeout_ms) {
if (!is_valid())
return false;
- const int kTimeout = 2000;
bool is_timeout = false;
IPC::Message* response = NULL;
bool succeeded = sender_->SendAndWaitForResponseWithTimeout(
new AutomationMsg_ShowInterstitialPageRequest(0, handle_, html_text),
&response,
- AutomationMsg_ShowInterstitialPageResponse::ID, kTimeout, &is_timeout);
+ AutomationMsg_ShowInterstitialPageResponse::ID, timeout_ms, &is_timeout);
if (!succeeded || !is_timeout)
return false;