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

Issue 8776018: fix tab restore service crash (Closed)

Created:
9 years ago by Evan Stade
Modified:
9 years ago
Reviewers:
sky
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

fix tab restore service crash if entries_ is larger than kMaxEntries, some pointer math goes askew BUG=106082 TEST=included Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112955

Patch Set 1 #

Patch Set 2 : revert unrelated change #

Total comments: 2

Patch Set 3 : always prune #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -2 lines) Patch
M chrome/browser/sessions/tab_restore_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service.cc View 1 2 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service_browsertest.cc View 1 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Evan Stade
9 years ago (2011-12-01 21:41:47 UTC) #1
sky
http://codereview.chromium.org/8776018/diff/2001/chrome/browser/sessions/tab_restore_service.cc File chrome/browser/sessions/tab_restore_service.cc (right): http://codereview.chromium.org/8776018/diff/2001/chrome/browser/sessions/tab_restore_service.cc#newcode541 chrome/browser/sessions/tab_restore_service.cc:541: PruneEntries(); How come we only prune if we're notifying?
9 years ago (2011-12-01 21:46:49 UTC) #2
Evan Stade
http://codereview.chromium.org/8776018/diff/2001/chrome/browser/sessions/tab_restore_service.cc File chrome/browser/sessions/tab_restore_service.cc (right): http://codereview.chromium.org/8776018/diff/2001/chrome/browser/sessions/tab_restore_service.cc#newcode541 chrome/browser/sessions/tab_restore_service.cc:541: PruneEntries(); On 2011/12/01 21:46:49, sky wrote: > How come ...
9 years ago (2011-12-02 02:22:26 UTC) #3
Evan Stade
updated
9 years ago (2011-12-02 20:43:57 UTC) #4
sky
LGTM
9 years ago (2011-12-02 20:56:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/8776018/3004
9 years ago (2011-12-02 21:04:22 UTC) #6
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years ago (2011-12-03 00:28:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/8776018/3004
9 years ago (2011-12-05 02:08:30 UTC) #8
commit-bot: I haz the power
9 years ago (2011-12-05 03:24:44 UTC) #9
Change committed as 112955

Powered by Google App Engine
This is Rietveld 408576698