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

Issue 2296793003: ThreadWatcher: fix use-after-delete bug. (Closed)

Created:
4 years, 3 months ago by Joshua LeVasseur
Modified:
4 years, 3 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ThreadWatcher: fix use-after-delete bug. When a StartupTimeBomb instance deletes itself, it may schedule a future task to complete the deletion, and this future task must not reference the destructed instance. BUG=none TEST=unit tests Committed: https://crrev.com/22149529e840b4328b0004f7f1a4836605f67fc8 Cr-Commit-Position: refs/heads/master@{#415716}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -13 lines) Patch
M chrome/browser/metrics/thread_watcher.h View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/metrics/thread_watcher.cc View 1 chunk +15 lines, -10 lines 1 comment Download

Messages

Total messages: 17 (10 generated)
Joshua LeVasseur
This is in preparation for turning ThreadWatcher into a component.
4 years, 3 months ago (2016-08-30 21:21:47 UTC) #8
ramant (doing other things)
LGTM. Thanks for fixing this. Please wait for llya and other's approval.
4 years, 3 months ago (2016-08-30 21:37:07 UTC) #9
wzhong
lgtm https://codereview.chromium.org/2296793003/diff/1/chrome/browser/metrics/thread_watcher.cc File chrome/browser/metrics/thread_watcher.cc (right): https://codereview.chromium.org/2296793003/diff/1/chrome/browser/metrics/thread_watcher.cc#newcode900 chrome/browser/metrics/thread_watcher.cc:900: const base::PlatformThreadId thread_id, Nit: const is not needed.
4 years, 3 months ago (2016-08-30 23:08:39 UTC) #10
Ilya Sherman
LGTM, thanks.
4 years, 3 months ago (2016-08-30 23:44:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2296793003/1
4 years, 3 months ago (2016-08-31 19:09:29 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-08-31 19:14:47 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 19:16:54 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/22149529e840b4328b0004f7f1a4836605f67fc8
Cr-Commit-Position: refs/heads/master@{#415716}

Powered by Google App Engine
This is Rietveld 408576698