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

Issue 8262009: Chrome OS: Shutdown without blocking when SIGTERM is received. (Closed)

Created:
9 years, 2 months ago by oshima
Modified:
9 years, 2 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Chrome OS: Shutdown without blocking when SIGTERM is received. Made ShuttingDownWithoutCloseBrowsers a explicit flag. Use END_SESSION shutdown type if chrome recieves SIGTERM AND there are tabs that may block shutdown. Make sure APP_TERMINATING is sent only once. This fixes SIGABORT crash in two shutdown scenarios: 1) powering off when chrome has beforeunload handler, or downloads in progress. 2) singout from screen locker when chrome has beforeunload handler or downloads in progress. This is simple version of fix to merge to release branch. I'm working on another CL that will (hopefully) cleanup a bit more. BUG=chromium-os:20460 TEST=see bug for repro step Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106988

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : sync #

Patch Set 4 : update comment #

Patch Set 5 : sync #

Total comments: 2

Patch Set 6 : don't ask SM to send signal if its not fast shutdown #

Patch Set 7 : g_session_manager_requested_shutdown #

Patch Set 8 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -28 lines) Patch
M chrome/browser/browser_shutdown.h View 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/browser_shutdown.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/chrome_browser_main_x11.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_list.cc View 1 2 3 4 5 6 7 7 chunks +37 lines, -20 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
oshima
9 years, 2 months ago (2011-10-13 16:38:07 UTC) #1
DaveMoore
Other than the comment this looks pretty good. Did you explore combining this logic with ...
9 years, 2 months ago (2011-10-13 16:50:05 UTC) #2
oshima
On 2011/10/13 16:50:05, DaveMoore wrote: > Other than the comment this looks pretty good. Did ...
9 years, 2 months ago (2011-10-13 17:54:53 UTC) #3
oshima
http://codereview.chromium.org/8262009/diff/7001/chrome/browser/ui/browser_list.cc File chrome/browser/ui/browser_list.cc (right): http://codereview.chromium.org/8262009/diff/7001/chrome/browser/ui/browser_list.cc#newcode301 chrome/browser/ui/browser_list.cc:301: if (notified) On 2011/10/13 16:50:06, DaveMoore wrote: > Is ...
9 years, 2 months ago (2011-10-13 17:55:02 UTC) #4
DaveMoore
I'm thinking about the fact that you prevent it in both NotifyAndTerminate() and NotifyAppTerminating(). Can ...
9 years, 2 months ago (2011-10-13 20:49:53 UTC) #5
oshima
On 2011/10/13 20:49:53, DaveMoore wrote: > I'm thinking about the fact that you prevent it ...
9 years, 2 months ago (2011-10-13 23:23:49 UTC) #6
oshima
Forgot to mention. I found that NotifyAndTerminate should ask SM only when it's user initiated, ...
9 years, 2 months ago (2011-10-13 23:25:49 UTC) #7
achuithb
lgtm
9 years, 2 months ago (2011-10-14 00:07:09 UTC) #8
DaveMoore
On 2011/10/14 00:07:09, achuith.bhandarkar wrote: > lgtm We still need a test for the scenario ...
9 years, 2 months ago (2011-10-14 19:56:46 UTC) #9
oshima
On 2011/10/14 19:56:46, DaveMoore wrote: > On 2011/10/14 00:07:09, achuith.bhandarkar wrote: > > lgtm > ...
9 years, 2 months ago (2011-10-17 20:18:15 UTC) #10
achuithb
Btw, last beta cut was on Tue for M15. Is this CL still planned for ...
9 years, 2 months ago (2011-10-20 20:27:01 UTC) #11
oshima
On 2011/10/20 20:27:01, achuith.bhandarkar wrote: > Btw, last beta cut was on Tue for M15. ...
9 years, 2 months ago (2011-10-21 17:18:34 UTC) #12
DaveMoore
I wanted a test as part of this and then work on a better solution ...
9 years, 2 months ago (2011-10-21 17:25:28 UTC) #13
achuithb
I'll take a look at testing this. It'll probably take a few days to develop ...
9 years, 2 months ago (2011-10-21 21:08:53 UTC) #14
achuithb
Test is here: http://codereview.chromium.org/8376001/ Only passes with this CL, as we expect.
9 years, 2 months ago (2011-10-23 01:11:11 UTC) #15
DaveMoore
lgtm, now that there's a test.
9 years, 2 months ago (2011-10-24 16:50:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/8262009/21001
9 years, 2 months ago (2011-10-24 20:51:04 UTC) #17
commit-bot: I haz the power
9 years, 2 months ago (2011-10-24 22:16:32 UTC) #18
Change committed as 106988

Powered by Google App Engine
This is Rietveld 408576698