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

Issue 616173003: Allow Registry Iterator functions to use a specified WOW64 mode when iterating. (Closed)

Created:
6 years, 2 months ago by Will Harris
Modified:
6 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, jam, estade+watch_chromium.org, tfarina, benquan, wfh+watch_chromium.org, browser-components-watch_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, grt+watch_chromium.org, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org, Ilya Sherman, mmenke, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Allow Registry Iterator functions to use a specified WOW64 mode when iterating. Also fix up any callers to access the correct hive (32 or 64) depending on where the data is, or whether the hive is Redirected, Shared, or Reflected as specified in MSDN http://msdn.microsoft.com/en-us/library/windows/desktop/aa384253.aspx BUG=338706, 408018 TEST=Follow steps in 408018 and make sure extension gets added on 64-bit Chrome TEST=base_unittests --gtest_filter=Registry* Committed: https://crrev.com/9353beb978ce832381ad4869dc4eb9822c9dc11c Cr-Commit-Position: refs/heads/master@{#298758}

Patch Set 1 #

Total comments: 6

Patch Set 2 : add second constructor #

Total comments: 7

Patch Set 3 : code review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -42 lines) Patch
M base/win/registry.h View 1 2 4 chunks +24 lines, -0 lines 0 comments Download
M base/win/registry.cc View 1 2 3 chunks +47 lines, -17 lines 0 comments Download
M chrome/browser/extensions/external_registry_loader_win.cc View 1 2 2 chunks +10 lines, -8 lines 0 comments Download
M chrome/installer/util/app_commands.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/installer/util/app_commands.cc View 1 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/installer/util/installation_state.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/plugin_list_win.cc View 3 chunks +23 lines, -12 lines 2 comments Download

Messages

Total messages: 29 (6 generated)
Will Harris
cpu@ input requested on whether this is the best approach here. This was originally to ...
6 years, 2 months ago (2014-10-01 01:00:59 UTC) #2
grt (UTC plus 2)
a comment from the peanut gallery https://codereview.chromium.org/616173003/diff/1/chrome/installer/util/app_commands.cc File chrome/installer/util/app_commands.cc (right): https://codereview.chromium.org/616173003/diff/1/chrome/installer/util/app_commands.cc#newcode37 chrome/installer/util/app_commands.cc:37: key.Handle(), kEmptyString, KEY_WOW64_32KEY); ...
6 years, 2 months ago (2014-10-01 17:14:30 UTC) #3
Will Harris
https://codereview.chromium.org/616173003/diff/1/chrome/installer/util/app_commands.cc File chrome/installer/util/app_commands.cc (right): https://codereview.chromium.org/616173003/diff/1/chrome/installer/util/app_commands.cc#newcode37 chrome/installer/util/app_commands.cc:37: key.Handle(), kEmptyString, KEY_WOW64_32KEY); On 2014/10/01 17:14:30, grt wrote: > ...
6 years, 2 months ago (2014-10-01 17:20:21 UTC) #4
grt (UTC plus 2)
https://codereview.chromium.org/616173003/diff/1/chrome/installer/util/app_commands.cc File chrome/installer/util/app_commands.cc (right): https://codereview.chromium.org/616173003/diff/1/chrome/installer/util/app_commands.cc#newcode37 chrome/installer/util/app_commands.cc:37: key.Handle(), kEmptyString, KEY_WOW64_32KEY); On 2014/10/01 17:20:21, Will Harris wrote: ...
6 years, 2 months ago (2014-10-01 17:33:50 UTC) #5
cpu_(ooo_6.6-7.5)
at first blush this feels wrong, the callee should add the KEY_WOW64_32KEY Can that be ...
6 years, 2 months ago (2014-10-02 00:31:25 UTC) #6
Will Harris
On 2014/10/02 00:31:25, cpu wrote: > at first blush this feels wrong, the callee should ...
6 years, 2 months ago (2014-10-02 17:35:16 UTC) #7
Will Harris
ping @cpu on above question. THanks!
6 years, 2 months ago (2014-10-06 16:19:48 UTC) #8
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/616173003/diff/1/base/win/registry.h File base/win/registry.h (right): https://codereview.chromium.org/616173003/diff/1/base/win/registry.h#newcode163 base/win/registry.h:163: yeah definitely two different ctors make sense here. Secondly ...
6 years, 2 months ago (2014-10-06 19:48:57 UTC) #9
Will Harris
Added new constructor, it's much neater. Also pulled the wow64access out of the AppCommands::Initialize function, ...
6 years, 2 months ago (2014-10-07 02:03:16 UTC) #10
grt (UTC plus 2)
https://codereview.chromium.org/616173003/diff/20001/base/win/registry.cc File base/win/registry.cc (right): https://codereview.chromium.org/616173003/diff/20001/base/win/registry.cc#newcode507 base/win/registry.cc:507: DCHECK(!wow64access || wow64access & kWow64AccessMask); is DCHECK_EQ((wow64Access & ~kWow64AccessMask), ...
6 years, 2 months ago (2014-10-07 15:47:10 UTC) #12
Will Harris
PTAL https://codereview.chromium.org/616173003/diff/20001/base/win/registry.cc File base/win/registry.cc (right): https://codereview.chromium.org/616173003/diff/20001/base/win/registry.cc#newcode507 base/win/registry.cc:507: DCHECK(!wow64access || wow64access & kWow64AccessMask); On 2014/10/07 15:47:10, ...
6 years, 2 months ago (2014-10-07 17:16:14 UTC) #13
cpu_(ooo_6.6-7.5)
lgtm on my side.
6 years, 2 months ago (2014-10-07 18:11:13 UTC) #14
grt (UTC plus 2)
lgtm
6 years, 2 months ago (2014-10-07 20:03:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/616173003/40001
6 years, 2 months ago (2014-10-07 20:36:31 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/16105)
6 years, 2 months ago (2014-10-07 20:46:57 UTC) #19
Will Harris
adding some OWNERS miket@ - Please review external_registry_loader_win.cc. This CL is the complete fix for ...
6 years, 2 months ago (2014-10-07 20:56:51 UTC) #21
miket_OOO
> miket@ - Please review external_registry_loader_win.cc. This CL is the complete This file LGTM
6 years, 2 months ago (2014-10-07 23:00:01 UTC) #22
ananta
https://codereview.chromium.org/616173003/diff/40001/content/common/plugin_list_win.cc File content/common/plugin_list_win.cc (right): https://codereview.chromium.org/616173003/diff/40001/content/common/plugin_list_win.cc#newcode369 content/common/plugin_list_win.cc:369: GetPluginsInRegistryDirectory(HKEY_LOCAL_MACHINE, Getting 32 bit plugins from a 64 bit ...
6 years, 2 months ago (2014-10-08 20:36:09 UTC) #23
Will Harris
https://codereview.chromium.org/616173003/diff/40001/content/common/plugin_list_win.cc File content/common/plugin_list_win.cc (right): https://codereview.chromium.org/616173003/diff/40001/content/common/plugin_list_win.cc#newcode369 content/common/plugin_list_win.cc:369: GetPluginsInRegistryDirectory(HKEY_LOCAL_MACHINE, On 2014/10/08 20:36:09, ananta wrote: > Getting 32 ...
6 years, 2 months ago (2014-10-08 20:43:23 UTC) #24
ananta
lgtm
6 years, 2 months ago (2014-10-08 21:39:48 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/616173003/40001
6 years, 2 months ago (2014-10-08 23:59:14 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 7adaec1cb743e292b55b4157484032053be5df00
6 years, 2 months ago (2014-10-09 04:31:53 UTC) #28
commit-bot: I haz the power
6 years, 2 months ago (2014-10-09 04:32:46 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9353beb978ce832381ad4869dc4eb9822c9dc11c
Cr-Commit-Position: refs/heads/master@{#298758}

Powered by Google App Engine
This is Rietveld 408576698