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

Issue 2507263002: Make nt_registry Create/OpenRegKey return a scoped object

Created:
4 years, 1 month ago by scottmg
Modified:
3 years, 10 months ago
Reviewers:
penny, grt (UTC plus 2)
CC:
chromium-reviews, pennymac+watch_chromium.org, caitkp+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make nt_registry Create/OpenRegKey return a scoped object Attempts to make ownership of lifetime of HANDLE more clear. Note that previously, INVALID_HANDLE_VALUE was used, but never actually tested against -- null is the correct invalid handle value for the registry functions. R=pennymac@chromium.org BUG=665635 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng

Patch Set 1 #

Total comments: 48

Patch Set 2 : fixes #

Patch Set 3 : . #

Patch Set 4 : null #

Patch Set 5 : fixes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -258 lines) Patch
M chrome/install_static/install_util.cc View 1 2 3 1 chunk +5 lines, -8 lines 2 comments Download
M chrome_elf/blacklist/blacklist.cc View 1 2 3 3 chunks +16 lines, -21 lines 0 comments Download
M chrome_elf/chrome_elf_security.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome_elf/nt_registry/nt_registry.h View 1 2 3 4 9 chunks +36 lines, -24 lines 0 comments Download
M chrome_elf/nt_registry/nt_registry.cc View 1 2 3 4 12 chunks +83 lines, -114 lines 0 comments Download
M chrome_elf/nt_registry/nt_registry_unittest.cc View 1 2 3 4 8 chunks +109 lines, -88 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
scottmg
Hey Penny, This is what I was thinking. I tried not to go overboard on ...
4 years, 1 month ago (2016-11-16 22:23:52 UTC) #3
penny
Scott, I think this looks great, small and more tidy - thanks for whipping it ...
4 years ago (2016-11-21 21:35:48 UTC) #4
scottmg
Thanks! (Sorry if I was confused or explaining things you already know for the scoped ...
4 years ago (2016-11-22 22:47:37 UTC) #5
scottmg
ping
3 years, 11 months ago (2017-01-02 22:37:16 UTC) #6
penny
On 2017/01/02 22:37:16, scottmg wrote: > ping Sorry! Lost this on my todo list. As ...
3 years, 11 months ago (2017-01-24 18:19:39 UTC) #7
scottmg
Updated description to mention invalid_handle_value vs null.
3 years, 10 months ago (2017-01-26 21:29:18 UTC) #9
penny
On 2017/01/26 21:29:18, scottmg wrote: > Updated description to mention invalid_handle_value vs null. So close ...
3 years, 10 months ago (2017-01-30 19:36:26 UTC) #10
scottmg
On 2017/01/30 19:36:26, penny wrote: > On 2017/01/26 21:29:18, scottmg wrote: > > Updated description ...
3 years, 10 months ago (2017-02-07 00:15:01 UTC) #14
grt (UTC plus 2)
Irritating drive-by: why not RAII the ntregistry api itself? It seems like it'd be easier ...
3 years, 10 months ago (2017-02-07 08:27:57 UTC) #17
penny
On 2017/02/07 08:27:57, grt (UTC plus 1) wrote: > Irritating drive-by: why not RAII the ...
3 years, 10 months ago (2017-02-08 21:19:43 UTC) #18
scottmg
On 2017/02/08 21:19:43, penny wrote: > On 2017/02/07 08:27:57, grt (UTC plus 1) wrote: > ...
3 years, 10 months ago (2017-02-08 21:23:32 UTC) #19
scottmg
On 2017/02/08 21:23:32, scottmg wrote: > On 2017/02/08 21:19:43, penny wrote: > > On 2017/02/07 ...
3 years, 10 months ago (2017-02-08 21:26:08 UTC) #20
grt (UTC plus 2)
On 2017/02/08 21:23:32, scottmg wrote: > On 2017/02/08 21:19:43, penny wrote: > > On 2017/02/07 ...
3 years, 10 months ago (2017-02-08 21:40:45 UTC) #21
grt (UTC plus 2)
https://codereview.chromium.org/2507263002/diff/100001/chrome/install_static/install_util.cc File chrome/install_static/install_util.cc (right): https://codereview.chromium.org/2507263002/diff/100001/chrome/install_static/install_util.cc#newcode355 chrome/install_static/install_util.cc:355: if (!key.is_valid()) wdyt of an explicit operator bool so ...
3 years, 10 months ago (2017-02-08 21:44:02 UTC) #23
penny
On 2017/02/08 21:44:02, grt (UTC plus 1) wrote: > https://codereview.chromium.org/2507263002/diff/100001/chrome/install_static/install_util.cc > File chrome/install_static/install_util.cc (right): > ...
3 years, 10 months ago (2017-02-09 20:55:01 UTC) #24
scottmg
On 2017/02/09 20:55:01, penny wrote: > On 2017/02/08 21:44:02, grt (UTC plus 1) wrote: > ...
3 years, 10 months ago (2017-02-09 21:30:20 UTC) #25
grt (UTC plus 2)
On 2017/02/09 21:30:20, scottmg wrote: > On 2017/02/09 20:55:01, penny wrote: > > On 2017/02/08 ...
3 years, 10 months ago (2017-02-10 09:48:28 UTC) #26
penny
On 2017/02/10 09:48:28, grt (AFK until Feb 20) wrote: > On 2017/02/09 21:30:20, scottmg wrote: ...
3 years, 10 months ago (2017-02-16 21:39:34 UTC) #27
grt (UTC plus 2)
3 years, 10 months ago (2017-02-20 09:13:07 UTC) #28
sgtm. thanks for taking this on.

Powered by Google App Engine
This is Rietveld 408576698