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

Issue 2300133002: Fix memory leak in ThreadWatcher. (Closed)

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

Description

Fix memory leak in ThreadWatcher. Also simplify initialization path. BUG=none TEST=unit tests Committed: https://crrev.com/bf03b6136f729384110523754d4ee57ed8ba9356 Cr-Commit-Position: refs/heads/master@{#416286}

Patch Set 1 #

Patch Set 2 : Use unique_ptr; return ptr from Register #

Total comments: 4

Patch Set 3 : Implement isherman's feedback (from comment #6) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -27 lines) Patch
M chrome/browser/metrics/thread_watcher.h View 1 2 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/metrics/thread_watcher.cc View 1 2 3 chunks +12 lines, -17 lines 0 comments Download
M chrome/browser/metrics/thread_watcher_unittest.cc View 1 1 chunk +14 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
Joshua LeVasseur
This is a revisit of https://codereview.chromium.org/2295983002/ which was reverted due to misuse of unique_ptr. Here ...
4 years, 3 months ago (2016-09-01 17:49:14 UTC) #3
Ilya Sherman
I'd still prefer that you use a unique_ptr -- please see my comment on the ...
4 years, 3 months ago (2016-09-01 18:18:11 UTC) #4
Joshua LeVasseur
On 2016/09/01 18:18:11, Ilya Sherman wrote: > I'd still prefer that you use a unique_ptr ...
4 years, 3 months ago (2016-09-01 20:28:02 UTC) #5
Ilya Sherman
LGTM % nits, thanks. https://codereview.chromium.org/2300133002/diff/20001/chrome/browser/metrics/thread_watcher.cc File chrome/browser/metrics/thread_watcher.cc (right): https://codereview.chromium.org/2300133002/diff/20001/chrome/browser/metrics/thread_watcher.cc#newcode90 chrome/browser/metrics/thread_watcher.cc:90: } nit: No need for ...
4 years, 3 months ago (2016-09-01 20:30:25 UTC) #6
Joshua LeVasseur
https://codereview.chromium.org/2300133002/diff/20001/chrome/browser/metrics/thread_watcher.cc File chrome/browser/metrics/thread_watcher.cc (right): https://codereview.chromium.org/2300133002/diff/20001/chrome/browser/metrics/thread_watcher.cc#newcode90 chrome/browser/metrics/thread_watcher.cc:90: } On 2016/09/01 20:30:25, Ilya Sherman wrote: > nit: ...
4 years, 3 months ago (2016-09-01 21:28:22 UTC) #7
alokp
lgtm
4 years, 3 months ago (2016-09-01 21:52:06 UTC) #10
wzhong
lgtm
4 years, 3 months ago (2016-09-02 16:58:41 UTC) #13
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/2300133002/40001
4 years, 3 months ago (2016-09-02 17:00:28 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-02 17:04:19 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 17:05:55 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bf03b6136f729384110523754d4ee57ed8ba9356
Cr-Commit-Position: refs/heads/master@{#416286}

Powered by Google App Engine
This is Rietveld 408576698