Index: chrome/browser/automation/testing_automation_provider.cc |
=================================================================== |
--- chrome/browser/automation/testing_automation_provider.cc (revision 145821) |
+++ chrome/browser/automation/testing_automation_provider.cc (working copy) |
@@ -1229,24 +1229,13 @@ |
"Invalid or missing arg: 'num_loads'"); |
return; |
} |
- Browser* browser = browser::FindTabbedBrowser(profile, false); |
- if (browser) { |
- // Already have browser. Need to just activate. |
- ProfileManager::FindOrCreateNewWindowForProfile( |
- profile, |
- chrome::startup::IS_NOT_PROCESS_STARTUP, |
- chrome::startup::IS_NOT_FIRST_RUN, |
- 0); |
- AutomationJSONReply(this, reply_message).SendSuccess(NULL); |
- } else { |
- new BrowserOpenedWithExistingProfileNotificationObserver( |
- this, reply_message, num_loads); |
- ProfileManager::FindOrCreateNewWindowForProfile( |
- profile, |
- chrome::startup::IS_NOT_PROCESS_STARTUP, |
- chrome::startup::IS_NOT_FIRST_RUN, |
- 0); |
- } |
+ new BrowserOpenedWithExistingProfileNotificationObserver( |
+ this, reply_message, num_loads); |
+ ProfileManager::FindOrCreateNewWindowForProfile( |
+ profile, |
+ chrome::startup::IS_NOT_PROCESS_STARTUP, |
+ chrome::startup::IS_NOT_FIRST_RUN, |
+ 0); |
} |
void TestingAutomationProvider::GetWindowForBrowser(int browser_handle, |