summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/view_source_uitest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/view_source_uitest.cc')
-rw-r--r--chrome/browser/tab_contents/view_source_uitest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/tab_contents/view_source_uitest.cc b/chrome/browser/tab_contents/view_source_uitest.cc
index e5d71b7..aec2b25 100644
--- a/chrome/browser/tab_contents/view_source_uitest.cc
+++ b/chrome/browser/tab_contents/view_source_uitest.cc
@@ -20,12 +20,13 @@ class ViewSourceTest : public UITest {
bool IsPageMenuCommandEnabled(int command) {
scoped_refptr<BrowserProxy> window_proxy(automation()->GetBrowserWindow(0));
+ EXPECT_TRUE(window_proxy.get());
if (!window_proxy.get())
return false;
- bool timed_out;
- return window_proxy->IsPageMenuCommandEnabledWithTimeout(
- command, 5000, &timed_out) && !timed_out;
+ bool enabled;
+ EXPECT_TRUE(window_proxy->IsPageMenuCommandEnabled(command, &enabled));
+ return enabled;
}
protected: