Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(967)

Unified Diff: chrome/test/automated_ui_tests/automated_ui_test_base.cc

Issue 67139: Remove the usage of GetLastActiveBrowserWindow... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/automated_ui_tests/automated_ui_test_base.cc
===================================================================
--- chrome/test/automated_ui_tests/automated_ui_test_base.cc (revision 13620)
+++ chrome/test/automated_ui_tests/automated_ui_test_base.cc (working copy)
@@ -61,13 +61,8 @@
}
bool AutomatedUITestBase::RunCommandAsync(int browser_command) {
- scoped_ptr<BrowserProxy> last_browser;
BrowserProxy* browser = active_browser();
if (NULL == browser) {
- last_browser.reset(automation()->GetLastActiveBrowserWindow());
- browser = last_browser.get();
- }
- if (NULL == browser) {
LogErrorMessage("browser_window_not_found");
return false;
}
@@ -80,13 +75,8 @@
}
bool AutomatedUITestBase::RunCommand(int browser_command) {
- scoped_ptr<BrowserProxy> last_browser;
BrowserProxy* browser = active_browser();
if (NULL == browser) {
- last_browser.reset(automation()->GetLastActiveBrowserWindow());
- browser = last_browser.get();
- }
- if (NULL == browser) {
LogErrorMessage("browser_window_not_found");
return false;
}

Powered by Google App Engine
This is Rietveld 408576698