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

Issue 2779413002: Duplicate process handle in process_metrics_win.cc (Closed)

Created:
3 years, 8 months ago by stanisc
Modified:
3 years, 8 months ago
Reviewers:
*dcheng, brucedawson
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Duplicate process handle in process_metrics_win.cc This is needed to avoid using an invalid handle to update metrics when there is a race condition with the process terminating. BUG=702339 Review-Url: https://codereview.chromium.org/2779413002 Cr-Commit-Position: refs/heads/master@{#461237} Committed: https://chromium.googlesource.com/chromium/src/+/e73f1a4f6e871894fc00f6129b4f1bc0847580cf

Patch Set 1 #

Total comments: 2

Patch Set 2 : Used ScopedHandle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -18 lines) Patch
M base/process/process_metrics.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M base/process/process_metrics_win.cc View 1 12 chunks +25 lines, -18 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
stanisc
dcheng@, please take a look! brucedawson@ is an optional reviewer.
3 years, 8 months ago (2017-03-30 22:21:46 UTC) #8
brucedawson
https://codereview.chromium.org/2779413002/diff/1/base/process/process_metrics_win.cc File base/process/process_metrics_win.cc (right): https://codereview.chromium.org/2779413002/diff/1/base/process/process_metrics_win.cc#newcode36 base/process/process_metrics_win.cc:36: ::CloseHandle(process_); Shouldn't this use a handle wrapper class rather ...
3 years, 8 months ago (2017-03-30 23:09:46 UTC) #9
stanisc
https://codereview.chromium.org/2779413002/diff/1/base/process/process_metrics_win.cc File base/process/process_metrics_win.cc (right): https://codereview.chromium.org/2779413002/diff/1/base/process/process_metrics_win.cc#newcode36 base/process/process_metrics_win.cc:36: ::CloseHandle(process_); On 2017/03/30 23:09:46, brucedawson wrote: > Shouldn't this ...
3 years, 8 months ago (2017-03-30 23:24:34 UTC) #10
brucedawson
> It should, but process_ field is defined in the header file which is shared ...
3 years, 8 months ago (2017-03-30 23:28:24 UTC) #11
dcheng
On 2017/03/30 23:28:24, brucedawson wrote: > > It should, but process_ field is defined in ...
3 years, 8 months ago (2017-03-31 01:06:15 UTC) #12
stanisc
On 2017/03/31 01:06:15, dcheng wrote: > On 2017/03/30 23:28:24, brucedawson wrote: > > > It ...
3 years, 8 months ago (2017-03-31 01:29:41 UTC) #18
brucedawson
lgtm
3 years, 8 months ago (2017-03-31 17:02:43 UTC) #21
dcheng
LGTM
3 years, 8 months ago (2017-03-31 18:06:38 UTC) #22
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/2779413002/20001
3 years, 8 months ago (2017-03-31 21:37:28 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 21:43:14 UTC) #27
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e73f1a4f6e871894fc00f6129b4f...

Powered by Google App Engine
This is Rietveld 408576698