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

Issue 14576015: In WinAura, also kill the Metro viewer process in AttemptExit(). (Closed)

Created:
7 years, 7 months ago by gab
Modified:
7 years, 7 months ago
Reviewers:
robertshield, sky
CC:
chromium-reviews
Visibility:
Public.

Description

In WinAura, also kill the Metro viewer process in AttemptExit(). This results in an IPC channel error in the browser process which releases Ash's reference to g_browser_process, this is necessary for the browser process to terminate. This is a precursor to Ash browser_tests (otherwise when browser_tests try to exit Chrome by closing all browser windows, Ash stays up and the test never ends...!). BUG=235648, 232842, 179830 TEST= A) Local hack of Ash browser_tests works!! B) Exit Chrome from the wrench menu on the native Desktop while Ash is running and make sure that the viewer is killed (whether it was sleeping or not) which subsequently results in the browser process going away with a clean exit :). C) Exit Chrome from the wrench menu on the native Desktop when Ash is NOT running and make sure it closes fine (as it did before this CL). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201476

Patch Set 1 : #

Total comments: 4

Patch Set 2 : nits #

Patch Set 3 : removed NOTREACHED() as discussed #

Total comments: 6

Patch Set 4 : no else #

Patch Set 5 : rebase on top of https://codereview.chromium.org/14576015/ #

Total comments: 2

Patch Set 6 : merge https://codereview.chromium.org/14698027/ #

Patch Set 7 : merge in https://codereview.chromium.org/14951007/ #

Patch Set 8 : fix include #

Patch Set 9 : Add AttemptExit() to BrowserProcessPlatformPart. #

Patch Set 10 : oops forgot new mac/android files #

Total comments: 3

Patch Set 11 : merge in https://codereview.chromium.org/14951007/ #

Patch Set 12 : fix includes #

Patch Set 13 : fix android compile #

Patch Set 14 : fix ios compile? #

Patch Set 15 : fix ios?!?! #

Patch Set 16 : fix ios?!?!?!?! #

Patch Set 17 : more ios fun #

Patch Set 18 : ios drives me nuts #

Patch Set 19 : ios dance #

Patch Set 20 : +TODO(ios) #

Patch Set 21 : even uglier hack to include OS_ANDROID #

Patch Set 22 : merge up to r201426 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -43 lines) Patch
M chrome/browser/browser_process_platform_part.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +24 lines, -20 lines 0 comments Download
A chrome/browser/browser_process_platform_part_android.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/browser_process_platform_part_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_platform_part_aurawin.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/browser_process_platform_part_aurawin.cc View 1 2 3 4 5 6 7 8 3 chunks +27 lines, -1 line 0 comments Download
M chrome/browser/browser_process_platform_part_base.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_platform_part_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_platform_part_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/browser_process_platform_part_mac.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/browser_process_platform_part_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/lifetime/application_lifetime.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -20 lines 0 comments Download
M chrome/browser/metro_viewer/metro_viewer_process_host_win.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/metro_viewer/metro_viewer_process_host_win.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
gab
Sir, PTAL. Thanks! Gab
7 years, 7 months ago (2013-05-10 15:30:58 UTC) #1
robertshield
lg, two nits https://codereview.chromium.org/14576015/diff/3008/chrome/browser/browser_process_impl_win.cc File chrome/browser/browser_process_impl_win.cc (right): https://codereview.chromium.org/14576015/diff/3008/chrome/browser/browser_process_impl_win.cc#newcode34 chrome/browser/browser_process_impl_win.cc:34: NOTREACHED(); what if this gets called ...
7 years, 7 months ago (2013-05-10 16:51:48 UTC) #2
gab
PTAL, thanks! https://codereview.chromium.org/14576015/diff/3008/chrome/browser/browser_process_impl_win.cc File chrome/browser/browser_process_impl_win.cc (right): https://codereview.chromium.org/14576015/diff/3008/chrome/browser/browser_process_impl_win.cc#newcode34 chrome/browser/browser_process_impl_win.cc:34: NOTREACHED(); On 2013/05/10 16:51:48, robertshield wrote: > ...
7 years, 7 months ago (2013-05-13 17:46:16 UTC) #3
gab
Sir, PTAL, removed NOTREACHED() as discussed. Cheers! Gab
7 years, 7 months ago (2013-05-13 22:47:50 UTC) #4
robertshield
lgtm
7 years, 7 months ago (2013-05-14 16:46:57 UTC) #5
gab
Scott, please take a look. Thanks! Gab
7 years, 7 months ago (2013-05-14 17:07:48 UTC) #6
sky
https://codereview.chromium.org/14576015/diff/19001/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): https://codereview.chromium.org/14576015/diff/19001/chrome/browser/browser_process.h#newcode230 chrome/browser/browser_process.h:230: virtual void TerminateMetroViewerProcess() = 0; Move these two into ...
7 years, 7 months ago (2013-05-14 17:17:51 UTC) #7
gab
See replies below. Thanks, Gab https://codereview.chromium.org/14576015/diff/19001/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): https://codereview.chromium.org/14576015/diff/19001/chrome/browser/browser_process.h#newcode230 chrome/browser/browser_process.h:230: virtual void TerminateMetroViewerProcess() = ...
7 years, 7 months ago (2013-05-14 17:45:25 UTC) #8
sky
https://codereview.chromium.org/14576015/diff/19001/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): https://codereview.chromium.org/14576015/diff/19001/chrome/browser/browser_process.h#newcode230 chrome/browser/browser_process.h:230: virtual void TerminateMetroViewerProcess() = 0; On 2013/05/14 17:45:25, gab ...
7 years, 7 months ago (2013-05-14 20:47:45 UTC) #9
gab
https://codereview.chromium.org/14576015/diff/19001/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): https://codereview.chromium.org/14576015/diff/19001/chrome/browser/browser_process.h#newcode230 chrome/browser/browser_process.h:230: virtual void TerminateMetroViewerProcess() = 0; On 2013/05/14 20:47:45, sky ...
7 years, 7 months ago (2013-05-15 17:13:23 UTC) #10
sky
https://codereview.chromium.org/14576015/diff/43017/chrome/browser/lifetime/application_lifetime.cc File chrome/browser/lifetime/application_lifetime.cc (right): https://codereview.chromium.org/14576015/diff/43017/chrome/browser/lifetime/application_lifetime.cc#newcode116 chrome/browser/lifetime/application_lifetime.cc:116: g_browser_process->platform_part()->TerminateMetroViewerProcess(); How about naming this AttemptExit so that you ...
7 years, 7 months ago (2013-05-15 21:13:18 UTC) #11
gab
Done, PTAL. Thanks! Gab https://codereview.chromium.org/14576015/diff/43017/chrome/browser/lifetime/application_lifetime.cc File chrome/browser/lifetime/application_lifetime.cc (right): https://codereview.chromium.org/14576015/diff/43017/chrome/browser/lifetime/application_lifetime.cc#newcode116 chrome/browser/lifetime/application_lifetime.cc:116: g_browser_process->platform_part()->TerminateMetroViewerProcess(); On 2013/05/15 21:13:18, sky ...
7 years, 7 months ago (2013-05-17 23:19:18 UTC) #12
sky
Nice cleanup, LGTM https://codereview.chromium.org/14576015/diff/87001/chrome/browser/browser_process_platform_part_base.cc File chrome/browser/browser_process_platform_part_base.cc (right): https://codereview.chromium.org/14576015/diff/87001/chrome/browser/browser_process_platform_part_base.cc#newcode23 chrome/browser/browser_process_platform_part_base.cc:23: chrome::CloseAllBrowsers(); I think its a little ...
7 years, 7 months ago (2013-05-18 15:18:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/14576015/100001
7 years, 7 months ago (2013-05-20 15:32:31 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-20 15:43:33 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/14576015/123001
7 years, 7 months ago (2013-05-20 18:53:40 UTC) #16
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-20 19:08:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/14576015/103005
7 years, 7 months ago (2013-05-21 02:56:47 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-21 03:10:08 UTC) #19
gab
Scott, see reply below. Thanks, Gab https://codereview.chromium.org/14576015/diff/87001/chrome/browser/browser_process_platform_part_base.cc File chrome/browser/browser_process_platform_part_base.cc (right): https://codereview.chromium.org/14576015/diff/87001/chrome/browser/browser_process_platform_part_base.cc#newcode23 chrome/browser/browser_process_platform_part_base.cc:23: chrome::CloseAllBrowsers(); On 2013/05/18 ...
7 years, 7 months ago (2013-05-21 03:50:33 UTC) #20
gab
https://codereview.chromium.org/14576015/diff/87001/chrome/browser/browser_process_platform_part_base.cc File chrome/browser/browser_process_platform_part_base.cc (right): https://codereview.chromium.org/14576015/diff/87001/chrome/browser/browser_process_platform_part_base.cc#newcode23 chrome/browser/browser_process_platform_part_base.cc:23: chrome::CloseAllBrowsers(); On 2013/05/21 03:50:33, gab wrote: > On 2013/05/18 ...
7 years, 7 months ago (2013-05-21 15:39:30 UTC) #21
sky
I like 1 better too. On Tue, May 21, 2013 at 8:39 AM, <gab@chromium.org> wrote: ...
7 years, 7 months ago (2013-05-21 16:28:06 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/14576015/171001
7 years, 7 months ago (2013-05-21 19:49:56 UTC) #23
gab
Ok... this is ugly... OS_IOS barely compiles anything, but browser_process_platform_part_base.cc is part of what it ...
7 years, 7 months ago (2013-05-21 19:57:50 UTC) #24
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-21 20:26:59 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/14576015/171001
7 years, 7 months ago (2013-05-21 20:35:13 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/14576015/188001
7 years, 7 months ago (2013-05-21 20:47:06 UTC) #27
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-21 21:23:40 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/14576015/200001
7 years, 7 months ago (2013-05-21 22:43:49 UTC) #29
gab
Ugh... had to make this even uglier since chrome::CloseAllBrowsers() also doesn't link on OS_ANDROID. Let ...
7 years, 7 months ago (2013-05-21 22:44:54 UTC) #30
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-21 23:20:02 UTC) #31
sky
SLGTM
7 years, 7 months ago (2013-05-21 23:47:02 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/14576015/200001
7 years, 7 months ago (2013-05-22 02:20:52 UTC) #33
gab
The CQ seems to be stuck, dcommitting since the bots that were failing on patch ...
7 years, 7 months ago (2013-05-22 02:41:27 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/14576015/223001
7 years, 7 months ago (2013-05-22 03:40:48 UTC) #35
commit-bot: I haz the power
7 years, 7 months ago (2013-05-22 10:10:49 UTC) #36
Message was sent while issue was closed.
Change committed as 201476

Powered by Google App Engine
This is Rietveld 408576698