| 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;
|
| }
|
|
|