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

Issue 201121: Chrome should shut down cleanly when quit from the Dock icon menu, during... (Closed)

Created:
11 years, 3 months ago by Mark Mentovai
Modified:
11 years, 3 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, Ben Goodger (Google), Paweł Hajdan Jr.
Visibility:
Public.

Description

Chrome should shut down cleanly when quit from the Dock icon menu, during user logout, and during system restart and shutdown. MainMenu.xib changes (because you're not expected to parse nibs yourself): - The quit menu item's action is changed from the AppController object's -quit: method (which no longer exists) to the application object's -terminate: method (the Cocoa standard). - The application and owner object types are changed from NSApplication to CrApplication. - The application menu name is changed from Chromium to ^IDS_SHORT_PRODUCT_NAME. Cocoa doesn't use this anyway, it gets replaced at runtime with the localized value of CFBundleName, but we shouldn't have branding-specific strings in our nibs. BUG=18078 TEST=Use Chrome for a while, quit it from the Dock icon menu, and relaunch. You should NOT see the "Google Chrome didn't shut down correctly" info bar. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26269

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -100 lines) Patch
M chrome/app/app-Info.plist View 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/nibs/MainMenu.xib View 17 chunks +33 lines, -27 lines 0 comments Download
M chrome/browser/app_controller_mac.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 5 chunks +30 lines, -48 lines 0 comments Download
M chrome/browser/automation/automation_provider_list_mac.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/browser_main.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_main_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_main_mac.mm View 2 chunks +21 lines, -17 lines 0 comments Download
M chrome/browser/browser_main_win.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/chrome_application_mac.h View 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/browser/chrome_application_mac.mm View 1 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mark Mentovai
11 years, 3 months ago (2009-09-15 19:58:07 UTC) #1
TVL
http://codereview.chromium.org/201121/diff/1/5 File chrome/app/app-Info.plist (right): http://codereview.chromium.org/201121/diff/1/5#newcode188 Line 188: <string>MainMenu</string> is this key worth having since we ...
11 years, 3 months ago (2009-09-15 20:07:43 UTC) #2
Mark Mentovai
http://codereview.chromium.org/201121/diff/1/5 File chrome/app/app-Info.plist (right): http://codereview.chromium.org/201121/diff/1/5#newcode188 Line 188: <string>MainMenu</string> TVL wrote: > is this key worth ...
11 years, 3 months ago (2009-09-15 20:11:56 UTC) #3
pink (ping after 24hrs)
LGTM http://codereview.chromium.org/201121/diff/1/2 File chrome/browser/chrome_application_mac.mm (right): http://codereview.chromium.org/201121/diff/1/2#newcode68 Line 68: // Using Chrome's delegate, shouldReturn should always ...
11 years, 3 months ago (2009-09-15 21:11:21 UTC) #4
Mark Mentovai
11 years, 3 months ago (2009-09-15 21:32:35 UTC) #5
http://codereview.chromium.org/201121/diff/1/2
File chrome/browser/chrome_application_mac.mm (right):

http://codereview.chromium.org/201121/diff/1/2#newcode68
Line 68: // Using Chrome's delegate, shouldReturn should always be YES, so
exit()
pink wrote:
> if that's the case, is it worth having this here at all?

Yeah, when I started with this I was doing things more generically and actually
had work being done in the delegate method.  Eventually I moved that into the
applicationWillTerminate: method.  Since this class is purpose-specific,
terminateShouldReturn: no longer makes sense, so I'm getting rid of it.

Powered by Google App Engine
This is Rietveld 408576698