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

Issue 1057533003: Stop calling EndSession() in chrome::ExitCleanly() (Closed)

Created:
5 years, 8 months ago by hashimoto
Modified:
5 years, 8 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop calling EndSession() in chrome::ExitCleanly() In application_lifetime.h, it is said that what ExitCleanly() does is "Shutdown chrome cleanly without blocking". However, it actually calls BrowserProcessImpl::EndSession(), which blocks the UI thread waiting for Preferences file to be written. This EndSession() call was added by https://codereview.chromium.org/7273038. By getting rid of this EndSession() call in ExitCleanly(), we can avoid blocking the UI thread waiting for the disk IO. Also, we'll be able to avoid writing the Preferences file multiple times during shutdown. This should make it less likely to hit SessionManager's 3-second timeout. BUG=470501 Committed: https://crrev.com/16a569a8340a53623aa0d76d4c2fcdc5e6831594 Cr-Commit-Position: refs/heads/master@{#324413}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -3 lines) Patch
M chrome/browser/lifetime/application_lifetime.cc View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
hashimoto
5 years, 8 months ago (2015-04-01 12:49:05 UTC) #2
oshima
"Blocking" in this context means no "onbeforeunload" dialog, not IO blocking. The shutdown process does ...
5 years, 8 months ago (2015-04-01 14:22:05 UTC) #3
hashimoto
On 2015/04/01 14:22:05, oshima wrote: > "Blocking" in this context means no "onbeforeunload" dialog, not ...
5 years, 8 months ago (2015-04-01 16:14:31 UTC) #4
oshima
+abodenha@ On Wed, Apr 1, 2015 at 9:14 AM, <hashimoto@chromium.org> wrote: > On 2015/04/01 14:22:05, ...
5 years, 8 months ago (2015-04-01 17:26:14 UTC) #5
hashimoto
On 2015/04/01 17:26:14, oshima wrote: > +abodenha@ > > On Wed, Apr 1, 2015 at ...
5 years, 8 months ago (2015-04-02 07:20:43 UTC) #6
oshima
On Thu, Apr 2, 2015 at 12:20 AM, <hashimoto@chromium.org> wrote: > On 2015/04/01 17:26:14, oshima ...
5 years, 8 months ago (2015-04-02 14:23:22 UTC) #7
hashimoto
On 2015/04/02 14:23:22, oshima wrote: > On Thu, Apr 2, 2015 at 12:20 AM, <mailto:hashimoto@chromium.org> ...
5 years, 8 months ago (2015-04-03 08:54:31 UTC) #8
oshima
discussed offline and I'm convinced that this is fine. We should keep eye on feedback ...
5 years, 8 months ago (2015-04-07 00:22:16 UTC) #9
hashimoto
sky@, could you review this change as an owner of chrome/browser/lifetime/application_lifetime.cc?
5 years, 8 months ago (2015-04-07 13:50:42 UTC) #11
sky
LGTM - we need test coverage of this stuff. It's too easy to regress.
5 years, 8 months ago (2015-04-08 19:43:14 UTC) #12
hashimoto
On 2015/04/08 19:43:14, sky wrote: > LGTM - we need test coverage of this stuff. ...
5 years, 8 months ago (2015-04-09 09:11:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1057533003/1
5 years, 8 months ago (2015-04-09 09:12:33 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 8 months ago (2015-04-09 11:25:38 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 11:26:23 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/16a569a8340a53623aa0d76d4c2fcdc5e6831594
Cr-Commit-Position: refs/heads/master@{#324413}

Powered by Google App Engine
This is Rietveld 408576698