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

Issue 7497056: Mac Lion: Chrome opens new window on restart when no windows were previously open (Closed)

Created:
9 years, 4 months ago by dhollowa
Modified:
9 years, 4 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Mac Lion: Chrome opens new window on restart when no windows were previously open Changes startup / restore behavior to better match Lion resume expectations. Chrome can get launched by the |loginwindow| process due to the resume feature on Lion. In this case, if there were no windows open in Chrome when restarting, Chrome re-opens with no windows upon login. This is also the expectation under previous OSs when Chrome is a login item, so that's been changed here too. BUG=90249 TEST=Manual. On Lion. Turn Chrome session restore on, close all windows (but don't quit), restart computer. Expect Chrome launches on startup with no open windows. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96198

Patch Set 1 #

Total comments: 2

Patch Set 2 : Braces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -28 lines) Patch
M base/mac/mac_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M base/mac/mac_util.mm View 2 chunks +29 lines, -24 lines 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 2 chunks +18 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
dhollowa
9 years, 4 months ago (2011-08-10 15:03:24 UTC) #1
Robert Sesek
Mark may be a better reviewer because he can approve the base/mac/ changes.
9 years, 4 months ago (2011-08-10 15:06:49 UTC) #2
Mark Mentovai
LGTM Note that <AppKit/NSApplication.h> has /* The following key is present in the userInfo of ...
9 years, 4 months ago (2011-08-10 15:53:02 UTC) #3
dhollowa
Yes, using NSApplicationLaunchIsDefaultLaunchKey was my first, most hopeful, choice. Sadly this doesn't do what one ...
9 years, 4 months ago (2011-08-10 16:16:57 UTC) #4
Mark Mentovai
9 years, 4 months ago (2011-08-10 16:18:15 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698