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

Issue 220373003: Prevent Chrome from quitting when apps are open. (Mac) (Closed)

Created:
6 years, 8 months ago by jackhou1
Modified:
6 years, 7 months ago
Reviewers:
tapted, Nico
CC:
chromium-reviews, tfarina, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Prevent Chrome from quitting when apps are open. (Mac) This is added behind --apps-keep-chrome-alive. When Chrome is quit, a notification is shown to let the user know that Chrome will continue running. The browser session should be shut down like on Windows, but that is not yet implemented. Similarly, quitting all the apps should quit Chrome. These will be added in followup CLs. BUG=333429 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265889 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266731

Patch Set 1 #

Total comments: 38

Patch Set 2 : Address comments #

Total comments: 6

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Address comments #

Total comments: 9

Patch Set 5 : Address comments #

Patch Set 6 : Use IsAppWindowRegisteredInAnyProfile #

Patch Set 7 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+423 lines, -0 lines) Patch
M apps/app_window_registry.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M apps/app_window_registry.cc View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/app/chromium_strings.grd View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/app_controller_mac.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 6 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.h View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc View 1 2 3 4 1 chunk +150 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac_interactive_uitest.cc View 1 2 3 4 5 1 chunk +127 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
jackhou1
This should implement enough to let people try out the UI and reach a final ...
6 years, 8 months ago (2014-04-01 03:19:23 UTC) #1
tapted
looks really good overall https://codereview.chromium.org/220373003/diff/1/apps/pref_names.h File apps/pref_names.h (right): https://codereview.chromium.org/220373003/diff/1/apps/pref_names.h#newcode14 apps/pref_names.h:14: extern const char kNotifyWhenAppsKeepChromeAlive[]; I ...
6 years, 8 months ago (2014-04-01 08:09:44 UTC) #2
jackhou1
https://codereview.chromium.org/220373003/diff/1/apps/pref_names.h File apps/pref_names.h (right): https://codereview.chromium.org/220373003/diff/1/apps/pref_names.h#newcode14 apps/pref_names.h:14: extern const char kNotifyWhenAppsKeepChromeAlive[]; On 2014/04/01 08:09:45, tapted wrote: ...
6 years, 8 months ago (2014-04-02 06:38:37 UTC) #3
tapted
https://codereview.chromium.org/220373003/diff/1/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc File chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc (right): https://codereview.chromium.org/220373003/diff/1/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc#newcode95 chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc:95: (*it)->GetBaseWindow()->Close(); On 2014/04/02 06:38:38, jackhou1 wrote: > On 2014/04/01 ...
6 years, 8 months ago (2014-04-03 01:45:37 UTC) #4
jackhou1
https://codereview.chromium.org/220373003/diff/1/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc File chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc (right): https://codereview.chromium.org/220373003/diff/1/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc#newcode95 chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc:95: (*it)->GetBaseWindow()->Close(); On 2014/04/03 01:45:38, tapted wrote: > On 2014/04/02 ...
6 years, 8 months ago (2014-04-03 03:07:06 UTC) #5
tapted
lgtm with a nit https://codereview.chromium.org/220373003/diff/40001/apps/app_window_registry.cc File apps/app_window_registry.cc (right): https://codereview.chromium.org/220373003/diff/40001/apps/app_window_registry.cc#newcode245 apps/app_window_registry.cc:245: while (!app_windows.empty()) nit: I would ...
6 years, 8 months ago (2014-04-03 03:49:15 UTC) #6
jackhou1
https://codereview.chromium.org/220373003/diff/40001/apps/app_window_registry.cc File apps/app_window_registry.cc (right): https://codereview.chromium.org/220373003/diff/40001/apps/app_window_registry.cc#newcode245 apps/app_window_registry.cc:245: while (!app_windows.empty()) On 2014/04/03 03:49:15, tapted wrote: > nit: ...
6 years, 8 months ago (2014-04-03 04:00:51 UTC) #7
jackhou1
6 years, 8 months ago (2014-04-03 04:01:30 UTC) #8
jackhou1
thakis, please review for OWNERS: chrome/browser/app_controller_mac.h chrome/browser/app_controller_mac.mm chrome/browser/prefs/browser_prefs.cc
6 years, 8 months ago (2014-04-03 04:02:43 UTC) #9
jackhou1
Ping.
6 years, 8 months ago (2014-04-08 23:54:05 UTC) #10
Nico
Looks like the UI has been discussed in great detail on the bug, so I ...
6 years, 8 months ago (2014-04-22 22:32:02 UTC) #11
jackhou1
https://codereview.chromium.org/220373003/diff/60001/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc File chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc (right): https://codereview.chromium.org/220373003/diff/60001/chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc#newcode32 chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc:32: namespace { On 2014/04/22 22:32:02, Nico wrote: > const ...
6 years, 8 months ago (2014-04-24 04:29:21 UTC) #12
jackhou1
The CQ bit was checked by jackhou@chromium.org
6 years, 8 months ago (2014-04-24 04:29:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/220373003/80001
6 years, 8 months ago (2014-04-24 05:02:45 UTC) #14
commit-bot: I haz the power
Change committed as 265889
6 years, 8 months ago (2014-04-24 08:44:37 UTC) #15
Alexander Potapenko
On 2014/04/24 08:44:37, I haz the power (commit-bot) wrote: > Change committed as 265889 This ...
6 years, 8 months ago (2014-04-24 11:52:42 UTC) #16
jackhou1
Thanks for handling this. The problem is that PlatformAppBrowserTest::GetAppWindowCount() calls InProcessBrowserTest::browser(), which returns an invalidated ...
6 years, 8 months ago (2014-04-28 01:49:26 UTC) #17
jackhou1
The CQ bit was checked by jackhou@chromium.org
6 years, 8 months ago (2014-04-28 01:49:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/220373003/100001
6 years, 8 months ago (2014-04-28 01:50:35 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-28 01:50:43 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/browser/about_flags.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-28 01:50:43 UTC) #21
tapted
cool - lgtm
6 years, 8 months ago (2014-04-28 01:51:12 UTC) #22
jackhou1
The CQ bit was checked by jackhou@chromium.org
6 years, 8 months ago (2014-04-28 03:08:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/220373003/120001
6 years, 8 months ago (2014-04-28 03:09:22 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-28 03:15:42 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-28 03:15:42 UTC) #26
jackhou1
The CQ bit was checked by jackhou@chromium.org
6 years, 7 months ago (2014-04-28 05:20:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/220373003/120001
6 years, 7 months ago (2014-04-28 05:21:58 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 06:01:16 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 7 months ago (2014-04-28 06:01:17 UTC) #30
jackhou1
The CQ bit was checked by jackhou@chromium.org
6 years, 7 months ago (2014-04-28 07:07:43 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/220373003/120001
6 years, 7 months ago (2014-04-28 07:09:37 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 07:42:32 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 7 months ago (2014-04-28 07:42:32 UTC) #34
jackhou1
The CQ bit was checked by jackhou@chromium.org
6 years, 7 months ago (2014-04-29 01:22:07 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/220373003/120001
6 years, 7 months ago (2014-04-29 01:22:31 UTC) #36
commit-bot: I haz the power
6 years, 7 months ago (2014-04-29 01:51:46 UTC) #37
Message was sent while issue was closed.
Change committed as 266731

Powered by Google App Engine
This is Rietveld 408576698