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

Issue 14579005: Close all windows when app shim quits. (Closed)

Created:
7 years, 7 months ago by jackhou1
Modified:
7 years, 6 months ago
Reviewers:
palmer, tapted, benwells, Nico
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, sail+watch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Close all windows when app shim quits. This adds a new IPC message QuitApp which is sent by the shim when the user quits the shim (right click -> Quit). The AppShimHost responds by closing all windows associated with the app. The shim actually quits when the extension eventually closes and AppShimHost closes the channel to the shim. BUG=168080 TEST=Start an app using its shim. Right click the app in the dock and select quit. The shell windows of that app should close. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203098

Patch Set 1 #

Patch Set 2 : Send QuitApp message when shim wants to quit. Close windows natively. #

Patch Set 3 : Rebased on top of http://crrev.com/15269003 #

Patch Set 4 : Sync and rebase #

Total comments: 24

Patch Set 5 : Address comments #

Patch Set 6 : Sync and rebase #

Patch Set 7 : Address comments #

Total comments: 8

Patch Set 8 : Address comments #

Patch Set 9 : Sync and rebase #

Total comments: 2

Patch Set 10 : Sync and rebase #

Total comments: 2

Patch Set 11 : Address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -12 lines) Patch
M apps/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M apps/app_shim/app_shim_handler_mac.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M apps/app_shim/app_shim_host_mac.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M apps/app_shim/app_shim_host_mac.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M apps/app_shim/app_shim_host_mac_unittest.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -1 line 0 comments Download
M apps/app_shim/app_shim_messages.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M apps/app_shim/extension_app_shim_handler_mac.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
D apps/app_shim/extension_app_shim_handler_mac.cc View 1 2 3 4 5 6 7 2 chunks +17 lines, -3 lines 0 comments Download
M apps/apps.gypi View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/chrome_main_app_mode_mac.mm View 1 2 3 4 5 6 7 8 9 10 8 chunks +67 lines, -7 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_mac.mm View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
jackhou1
This basically just makes right-click -> Quit work. You can't Command+Q because that closes Chrome. ...
7 years, 7 months ago (2013-05-22 01:58:22 UTC) #1
jackhou1
PTAL
7 years, 7 months ago (2013-05-24 07:23:38 UTC) #2
tapted
Don't forget to set a bug number and TEST= And note that later we'll also ...
7 years, 7 months ago (2013-05-24 08:43:51 UTC) #3
jackhou1
https://codereview.chromium.org/14579005/diff/7001/apps/app_shim/extension_app_shim_handler_mac.mm File apps/app_shim/extension_app_shim_handler_mac.mm (right): https://codereview.chromium.org/14579005/diff/7001/apps/app_shim/extension_app_shim_handler_mac.mm#newcode79 apps/app_shim/extension_app_shim_handler_mac.mm:79: for (extensions::ShellWindowRegistry::const_iterator i = windows.begin(); On 2013/05/24 08:43:51, tapted ...
7 years, 6 months ago (2013-05-27 01:02:47 UTC) #4
tapted
Can you re-upload? It looks like `git cl` didn't get around to uploading the files ...
7 years, 6 months ago (2013-05-27 01:13:56 UTC) #5
jackhou1
https://codereview.chromium.org/14579005/diff/7001/apps/app_shim/extension_app_shim_handler_mac.mm File apps/app_shim/extension_app_shim_handler_mac.mm (right): https://codereview.chromium.org/14579005/diff/7001/apps/app_shim/extension_app_shim_handler_mac.mm#newcode95 apps/app_shim/extension_app_shim_handler_mac.mm:95: NSWindow* window = (*it)->GetNativeWindow(); On 2013/05/27 01:13:56, tapted wrote: ...
7 years, 6 months ago (2013-05-27 05:04:51 UTC) #6
tapted
lgtm with some nits. https://codereview.chromium.org/14579005/diff/31001/apps/app_shim/app_shim_messages.h File apps/app_shim/app_shim_messages.h (right): https://codereview.chromium.org/14579005/diff/31001/apps/app_shim/app_shim_messages.h#newcode30 apps/app_shim/app_shim_messages.h:30: // terminates the channel to ...
7 years, 6 months ago (2013-05-27 06:44:29 UTC) #7
jackhou1
https://codereview.chromium.org/14579005/diff/31001/apps/app_shim/app_shim_messages.h File apps/app_shim/app_shim_messages.h (right): https://codereview.chromium.org/14579005/diff/31001/apps/app_shim/app_shim_messages.h#newcode30 apps/app_shim/app_shim_messages.h:30: // terminates the channel to the shim, and the ...
7 years, 6 months ago (2013-05-28 07:30:21 UTC) #8
jackhou1
benwells, could you please review for OWNERS in apps/? thakis, could you please review for ...
7 years, 6 months ago (2013-05-28 07:33:41 UTC) #9
Nico
I'll wait for benwells, this looks like mostly an apps/ CL. Do you need security ...
7 years, 6 months ago (2013-05-28 19:54:33 UTC) #10
benwells
This lgtm. As Nico mentions we should be getting all IPC changes looked at by ...
7 years, 6 months ago (2013-05-29 04:28:00 UTC) #11
jackhou1
palmer, could you please do security review for app shim IPC changes?
7 years, 6 months ago (2013-05-29 04:50:43 UTC) #12
palmer
LGTM
7 years, 6 months ago (2013-05-29 21:52:21 UTC) #13
Nico
lgtm https://codereview.chromium.org/14579005/diff/53001/chrome/app/chrome_main_app_mode_mac.mm File chrome/app/chrome_main_app_mode_mac.mm (right): https://codereview.chromium.org/14579005/diff/53001/chrome/app/chrome_main_app_mode_mac.mm#newcode114 chrome/app/chrome_main_app_mode_mac.mm:114: [NSApp setDelegate:nsapp_delegate_]; maybe DCHECK that no delegate is ...
7 years, 6 months ago (2013-05-29 23:01:09 UTC) #14
jackhou1
https://codereview.chromium.org/14579005/diff/53001/chrome/app/chrome_main_app_mode_mac.mm File chrome/app/chrome_main_app_mode_mac.mm (right): https://codereview.chromium.org/14579005/diff/53001/chrome/app/chrome_main_app_mode_mac.mm#newcode114 chrome/app/chrome_main_app_mode_mac.mm:114: [NSApp setDelegate:nsapp_delegate_]; On 2013/05/29 23:01:09, Nico wrote: > maybe ...
7 years, 6 months ago (2013-05-29 23:50:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/14579005/63001
7 years, 6 months ago (2013-05-30 02:38:25 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/14579005/63001
7 years, 6 months ago (2013-05-30 06:18:43 UTC) #17
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 06:40:21 UTC) #18
Message was sent while issue was closed.
Change committed as 203098

Powered by Google App Engine
This is Rietveld 408576698