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

Issue 275103012: Add WOW64 support and DeleteEmptyKey to base::win::registry. (Closed)

Created:
6 years, 7 months ago by Will Harris
Modified:
6 years, 7 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Add WOW64 support to DeleteKey. Add DeleteEmptyKey to mimic SHDeleteEmptyKey. Add lots of WOW64 tests. Add a DeleteKey and a CreateKey test. These additions are needed to support Win64 installer logic. BUG=338706, 348626 TEST=base_unittests --gtest_filter=Registry* on XP (x86), Vista (x86/x64), Win7 (x86/x64). TEST=installer_util_unittests R=cpu@chromium.org, grt@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272213

Patch Set 1 #

Patch Set 2 : de-hungarian the variable names #

Patch Set 3 : separate the wow64 code from the bug fixes #

Total comments: 52

Patch Set 4 : code review changes #

Total comments: 65

Patch Set 5 : more code review changes #

Patch Set 6 : add DeleteEmptyKey #

Total comments: 24

Patch Set 7 : moar code review changes #

Total comments: 6

Patch Set 8 : formatting nits. move static declaration. add todo. #

Patch Set 9 : allow DeleteKey to work on empty keys. Remove Wow64ConflictingViews test #

Total comments: 2

Patch Set 10 : Vista 64 doesn't allow opening WOW6432 node when KEY_WOW64_64KEY is specified. #

Patch Set 11 : remove Wow6432NodeFromRedirected test #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -16 lines) Patch
M base/win/registry.h View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M base/win/registry.cc View 1 2 3 4 5 6 7 8 10 chunks +152 lines, -11 lines 0 comments Download
M base/win/registry_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +176 lines, -5 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Will Harris
6 years, 7 months ago (2014-05-13 20:50:52 UTC) #1
cpu_(ooo_6.6-7.5)
wfh, thanks for doing this, I think you just showed in time to do some ...
6 years, 7 months ago (2014-05-14 17:29:48 UTC) #2
Will Harris
On 2014/05/14 17:29:48, cpu wrote: > wfh, thanks for doing this, I think you just ...
6 years, 7 months ago (2014-05-15 22:47:30 UTC) #3
cpu_(ooo_6.6-7.5)
+grt
6 years, 7 months ago (2014-05-16 03:10:48 UTC) #4
grt (UTC plus 2)
thanks for taking this on! the volume of comments is a sign of affection. :-) ...
6 years, 7 months ago (2014-05-16 15:44:43 UTC) #5
Will Harris
https://codereview.chromium.org/275103012/diff/40001/base/win/registry.cc File base/win/registry.cc (left): https://codereview.chromium.org/275103012/diff/40001/base/win/registry.cc#oldcode14 base/win/registry.cc:14: #pragma comment(lib, "shlwapi.lib") // for SHDeleteKey On 2014/05/16 15:44:43, ...
6 years, 7 months ago (2014-05-16 22:55:45 UTC) #6
grt (UTC plus 2)
i haven't looked at the test yet, but here are more comments for the implementation. ...
6 years, 7 months ago (2014-05-17 12:54:33 UTC) #7
grt (UTC plus 2)
some test comments https://codereview.chromium.org/275103012/diff/60001/base/win/registry_unittest.cc File base/win/registry_unittest.cc (right): https://codereview.chromium.org/275103012/diff/60001/base/win/registry_unittest.cc#newcode23 base/win/registry_unittest.cc:23: const REGSAM kNativeViewMask = KEY_WOW64_64KEY; make ...
6 years, 7 months ago (2014-05-17 19:31:52 UTC) #8
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/275103012/diff/60001/base/win/registry.cc File base/win/registry.cc (right): https://codereview.chromium.org/275103012/diff/60001/base/win/registry.cc#newcode87 base/win/registry.cc:87: LONG RegKey::CreateKey(const wchar_t* name, REGSAM access) { On 2014/05/17 ...
6 years, 7 months ago (2014-05-19 19:21:13 UTC) #9
Will Harris
Hopefully this is looking good - still getting used to Chromium standards after my oppressive ...
6 years, 7 months ago (2014-05-19 21:49:03 UTC) #10
Will Harris
Added DeleteEmptyKey. https://codereview.chromium.org/275103012/diff/100001/base/win/registry.cc File base/win/registry.cc (right): https://codereview.chromium.org/275103012/diff/100001/base/win/registry.cc#newcode208 base/win/registry.cc:208: LONG RegKey::DeleteEmptyKey(const wchar_t* name) { added DeleteEmptyKey ...
6 years, 7 months ago (2014-05-19 23:47:25 UTC) #11
grt (UTC plus 2)
looking good. mostly down to nits and the three methods that don't fit in (Set, ...
6 years, 7 months ago (2014-05-20 15:28:51 UTC) #12
Will Harris
All done. PTAL. https://codereview.chromium.org/275103012/diff/100001/base/win/registry.cc File base/win/registry.cc (right): https://codereview.chromium.org/275103012/diff/100001/base/win/registry.cc#newcode99 base/win/registry.cc:99: return ERROR_INVALID_PARAMETER; On 2014/05/20 15:28:52, grt ...
6 years, 7 months ago (2014-05-20 17:03:34 UTC) #13
grt (UTC plus 2)
almost there! https://codereview.chromium.org/275103012/diff/100001/base/win/registry_unittest.cc File base/win/registry_unittest.cc (right): https://codereview.chromium.org/275103012/diff/100001/base/win/registry_unittest.cc#newcode23 base/win/registry_unittest.cc:23: static const REGSAM kNativeViewMask = KEY_WOW64_64KEY; On ...
6 years, 7 months ago (2014-05-20 17:46:55 UTC) #14
grt (UTC plus 2)
please update the CL description since it now does more than just fix DeleteKey. thanks!
6 years, 7 months ago (2014-05-20 18:41:35 UTC) #15
Will Harris
almost there! https://codereview.chromium.org/275103012/diff/120001/base/win/registry.cc File base/win/registry.cc (right): https://codereview.chromium.org/275103012/diff/120001/base/win/registry.cc#newcode218 base/win/registry.cc:218: &target_key); On 2014/05/20 17:46:56, grt wrote: > ...
6 years, 7 months ago (2014-05-20 19:22:40 UTC) #16
grt (UTC plus 2)
lgtm. i've fired off the win and win_rel trybots for you.
6 years, 7 months ago (2014-05-20 19:43:11 UTC) #17
Will Harris
On 2014/05/20 19:43:11, grt wrote: > lgtm. i've fired off the win and win_rel trybots ...
6 years, 7 months ago (2014-05-21 00:18:34 UTC) #18
grt (UTC plus 2)
https://codereview.chromium.org/275103012/diff/160001/base/win/registry_unittest.cc File base/win/registry_unittest.cc (right): https://codereview.chromium.org/275103012/diff/160001/base/win/registry_unittest.cc#newcode335 base/win/registry_unittest.cc:335: foo_software_wow64_key_.c_str(), This reinforces my previous comment that you're testing ...
6 years, 7 months ago (2014-05-21 13:52:18 UTC) #19
grt (UTC plus 2)
https://codereview.chromium.org/275103012/diff/160001/base/win/registry_unittest.cc File base/win/registry_unittest.cc (right): https://codereview.chromium.org/275103012/diff/160001/base/win/registry_unittest.cc#newcode335 base/win/registry_unittest.cc:335: foo_software_wow64_key_.c_str(), On 2014/05/21 13:52:19, grt wrote: > This reinforces ...
6 years, 7 months ago (2014-05-21 13:53:17 UTC) #20
cpu_(ooo_6.6-7.5)
lgtm. I am too somewhat puzzled about the wow32_64, do you plan to use it? ...
6 years, 7 months ago (2014-05-21 15:36:56 UTC) #21
Will Harris
On 2014/05/21 15:36:56, cpu wrote: > lgtm. > > I am too somewhat puzzled about ...
6 years, 7 months ago (2014-05-21 15:43:21 UTC) #22
grt (UTC plus 2)
On 2014/05/21 15:43:21, Will Harris wrote: > On 2014/05/21 15:36:56, cpu wrote: > > lgtm. ...
6 years, 7 months ago (2014-05-21 16:45:24 UTC) #23
Will Harris
On 2014/05/21 16:45:24, grt wrote: > On 2014/05/21 15:43:21, Will Harris wrote: > > On ...
6 years, 7 months ago (2014-05-21 17:05:25 UTC) #24
grt (UTC plus 2)
lgtm!
6 years, 7 months ago (2014-05-21 18:03:36 UTC) #25
Will Harris
The CQ bit was checked by wfh@chromium.org
6 years, 7 months ago (2014-05-21 19:54:16 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wfh@chromium.org/275103012/190001
6 years, 7 months ago (2014-05-21 19:58:15 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 08:07:47 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 08:14:46 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/69136)
6 years, 7 months ago (2014-05-22 08:14:47 UTC) #30
grt (UTC plus 2)
On 2014/05/22 08:14:47, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 7 months ago (2014-05-22 09:46:44 UTC) #31
Will Harris
6 years, 7 months ago (2014-05-22 17:23:38 UTC) #32
Message was sent while issue was closed.
Committed patchset #12 manually as r272213 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698