Index: chrome/browser/app_controller_mac.mm |
=================================================================== |
--- chrome/browser/app_controller_mac.mm (revision 17084) |
+++ chrome/browser/app_controller_mac.mm (working copy) |
@@ -353,9 +353,16 @@ |
return; |
} |
+ Browser* browser = BrowserList::GetLastActive(); |
+ // if no browser window exists then create one with no tabs to be filled in |
+ if (!browser) { |
+ browser = Browser::Create([self defaultProfile]); |
+ browser->window()->Show(); |
Scott Hess - ex-Googler
2009/05/28 19:34:22
Does the Show() at this point cause any jankiness?
|
+ } |
+ |
CommandLine dummy((std::wstring())); |
BrowserInit::LaunchWithProfile launch(std::wstring(), dummy); |
- launch.OpenURLsInBrowser(BrowserList::GetLastActive(), false, urls); |
+ launch.OpenURLsInBrowser(browser, false, urls); |
} |
- (void)openPendingURLs { |