Index: chrome/test/chromedriver/alert_commands.cc |
diff --git a/chrome/test/chromedriver/alert_commands.cc b/chrome/test/chromedriver/alert_commands.cc |
index f75e440a5109d21fa5a27165bce7e6ca1045c221..d42055b8404abe8e11133ad1606a809bbd63f4cd 100644 |
--- a/chrome/test/chromedriver/alert_commands.cc |
+++ b/chrome/test/chromedriver/alert_commands.cc |
@@ -12,6 +12,7 @@ |
#include "chrome/test/chromedriver/chrome/status.h" |
#include "chrome/test/chromedriver/chrome/web_view.h" |
#include "chrome/test/chromedriver/session.h" |
+#include "chrome/test/chromedriver/util.h" |
Status ExecuteAlertCommand( |
const AlertCommand& alert_command, |
@@ -32,7 +33,7 @@ Status ExecuteAlertCommand( |
return status; |
status = web_view->WaitForPendingNavigations( |
- session->GetCurrentFrameId(), session->page_load_timeout, true); |
+ session->GetCurrentFrameId(), Timeout(session->page_load_timeout), true); |
if (status.IsError() && status.code() != kUnexpectedAlertOpen) |
return status; |