summaryrefslogtreecommitdiffstats
path: root/chrome/test/reliability
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/reliability')
-rw-r--r--chrome/test/reliability/automated_ui_tests.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/test/reliability/automated_ui_tests.cc b/chrome/test/reliability/automated_ui_tests.cc
index 46b23b0..515b017 100644
--- a/chrome/test/reliability/automated_ui_tests.cc
+++ b/chrome/test/reliability/automated_ui_tests.cc
@@ -680,7 +680,8 @@ bool AutomatedUITest::ForceCrash() {
bool AutomatedUITest::SimulateKeyPressInActiveWindow(ui::KeyboardCode key,
int flags) {
- scoped_refptr<WindowProxy> window(automation()->GetActiveWindow());
+ scoped_refptr<BrowserProxy> browser(active_browser());
+ scoped_refptr<WindowProxy> window(browser->GetWindow());
if (window.get() == NULL) {
AddErrorAttribute("active_window_not_found");
return false;