| Index: chrome/browser/app_controller_mac.mm
|
| diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
|
| index d25953b6e6310b047e27ec4e3154c470ac9a4ecd..66c26def7687a6b29c8d0ae16229efe2825862ea 100644
|
| --- a/chrome/browser/app_controller_mac.mm
|
| +++ b/chrome/browser/app_controller_mac.mm
|
| @@ -1076,20 +1076,20 @@ class AppControllerProfileObserver : public ProfileInfoCacheObserver {
|
| // Bring all browser windows to the front. Specifically, this brings them in
|
| // front of any app windows. FocusWindowSet will also unminimize the most
|
| // recently minimized window if no windows in the set are visible.
|
| - // If there are tabbed or popup windows, return here. Otherwise, the windows
|
| - // are panels or notifications so we still need to open a new window.
|
| + // If there are any, return here. Otherwise, the windows are panels or
|
| + // notifications so we still need to open a new window.
|
| if (hasVisibleWindows) {
|
| - BOOL foundBrowser = NO;
|
| std::set<NSWindow*> browserWindows;
|
| for (chrome::BrowserIterator iter; !iter.done(); iter.Next()) {
|
| Browser* browser = *iter;
|
| browserWindows.insert(browser->window()->GetNativeWindow());
|
| - if (browser->is_type_tabbed() || browser->is_type_popup())
|
| - foundBrowser = YES;
|
| }
|
| - ui::FocusWindowSet(browserWindows);
|
| - if (foundBrowser)
|
| - return YES;
|
| + if (!browserWindows.empty()) {
|
| + ui::FocusWindowSet(browserWindows);
|
| + // Return NO; we've done the unminimize, so AppKit shouldn't do
|
| + // anything.
|
| + return NO;
|
| + }
|
| }
|
|
|
| // If launched as a hidden login item (due to installation of a persistent app
|
|
|