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

Issue 7274033: Fixes race condition that could lead to premature shutdown. When (Closed)

Created:
9 years, 5 months ago by sky
Modified:
9 years, 5 months ago
Reviewers:
brettw
CC:
chromium-reviews
Visibility:
Public.

Description

Fixes race condition that could lead to premature shutdown. When session restore has been initiated we don't want to exit. Previously this was possible if session restore was initiated and the last window closed (this happens on chromeos). To avoid this when session restore starts it AddRefs, and then Releases when done. BUG=83861 TEST=covered by test R=brettw@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91003

Patch Set 1 #

Patch Set 2 : Remove FLAKY_ from test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -6 lines) Patch
M chrome/browser/chromeos/tab_closeable_state_watcher_browsertest.cc View 1 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/sessions/session_restore.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sessions/session_restore.cc View 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
sky
9 years, 5 months ago (2011-06-28 21:40:51 UTC) #1
brettw
9 years, 5 months ago (2011-06-29 16:46:57 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698