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

Issue 623903002: Move shell_util's RegistryEntry class into a separate file. (Closed)

Created:
6 years, 2 months ago by Matt Giuca
Modified:
5 years ago
CC:
chromium-reviews, grt+watch_chromium.org, wfh+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@shell_util-generic-associations
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move shell_util's RegistryEntry class into a separate file. Makes shell_util more modular and breaks it up a bit. RegistryEntry is a generally useful API. BUG=419972 Committed: https://crrev.com/3bfee5e3676510bf8348bb46334a7dbea4a0a181 Cr-Commit-Position: refs/heads/master@{#362923}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase and reformat (recreated CL from scratch). #

Patch Set 4 : Updated copyright. #

Patch Set 5 : Do-over and rebase. Most of the changes have been taken care of in precursor CLs. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -201 lines) Patch
M chrome/chrome_installer_util.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/util/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/installer/util/registry_entry.h View 1 2 3 4 1 chunk +120 lines, -0 lines 0 comments Download
A chrome/installer/util/registry_entry.cc View 1 2 3 4 1 chunk +107 lines, -0 lines 1 comment Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 2 chunks +1 line, -201 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 43 (13 generated)
Matt Giuca
Hi Gabriel, Here's the RegistryEntry refactor that we discussed briefly in the previous CL, and ...
6 years, 2 months ago (2014-10-03 04:55:07 UTC) #2
Will Harris
comments from the peanut gallery https://codereview.chromium.org/623903002/diff/1/chrome/installer/util/registry_entry.cc File chrome/installer/util/registry_entry.cc (right): https://codereview.chromium.org/623903002/diff/1/chrome/installer/util/registry_entry.cc#newcode42 chrome/installer/util/registry_entry.cc:42: items->AddCreateRegKeyWorkItem(root, key_path_, WorkItem::kWow64Default); Will ...
6 years, 2 months ago (2014-10-03 05:13:45 UTC) #4
Matt Giuca
https://codereview.chromium.org/623903002/diff/1/chrome/installer/util/registry_entry.cc File chrome/installer/util/registry_entry.cc (right): https://codereview.chromium.org/623903002/diff/1/chrome/installer/util/registry_entry.cc#newcode42 chrome/installer/util/registry_entry.cc:42: items->AddCreateRegKeyWorkItem(root, key_path_, WorkItem::kWow64Default); No idea --- note that I'm ...
6 years, 2 months ago (2014-10-03 10:09:39 UTC) #5
grt (UTC plus 2)
nice refactor. please add a unittest. https://codereview.chromium.org/623903002/diff/1/chrome/installer/util/registry_entry.cc File chrome/installer/util/registry_entry.cc (right): https://codereview.chromium.org/623903002/diff/1/chrome/installer/util/registry_entry.cc#newcode16 chrome/installer/util/registry_entry.cc:16: is_string_(true), type_(REG_SZ), value_(reinterpret_cast<const ...
6 years, 2 months ago (2014-10-03 14:31:07 UTC) #7
gab
Overall idea looks good to me. I'll leave you in the hands of grt for ...
6 years, 2 months ago (2014-10-03 15:40:03 UTC) #8
Matt Giuca
Hi all, I am finally getting back around to this CL. Sorry it has taken ...
5 years, 11 months ago (2015-01-20 02:41:17 UTC) #10
grt (UTC plus 2)
I'm fine with the is_string staying until a subsequent cleanup, but the Wow64 thing needs ...
5 years, 11 months ago (2015-01-20 20:05:32 UTC) #11
Matt Giuca
https://codereview.chromium.org/623903002/diff/1/chrome/installer/util/registry_entry.cc File chrome/installer/util/registry_entry.cc (right): https://codereview.chromium.org/623903002/diff/1/chrome/installer/util/registry_entry.cc#newcode42 chrome/installer/util/registry_entry.cc:42: items->AddCreateRegKeyWorkItem(root, key_path_, WorkItem::kWow64Default); OK, if you really feel strongly ...
5 years, 11 months ago (2015-01-20 23:16:35 UTC) #12
grt (UTC plus 2)
https://codereview.chromium.org/623903002/diff/1/chrome/installer/util/registry_entry.cc File chrome/installer/util/registry_entry.cc (right): https://codereview.chromium.org/623903002/diff/1/chrome/installer/util/registry_entry.cc#newcode42 chrome/installer/util/registry_entry.cc:42: items->AddCreateRegKeyWorkItem(root, key_path_, WorkItem::kWow64Default); On 2015/01/20 23:16:35, Matt Giuca wrote: ...
5 years, 11 months ago (2015-01-20 23:30:56 UTC) #13
gab
I appreciate your urge to minimize churn with this code move. In that spirit, how ...
5 years, 11 months ago (2015-01-21 21:20:01 UTC) #14
gab
On 2015/01/21 21:20:01, gab wrote: > I appreciate your urge to minimize churn with this ...
5 years, 1 month ago (2015-11-16 16:58:24 UTC) #15
Matt Giuca
On 2015/11/16 16:58:24, gab wrote: > Hey Matt, ping to see whether you still intend ...
5 years ago (2015-11-25 03:37:04 UTC) #16
Matt Giuca
On 2015/11/25 03:37:04, Matt Giuca wrote: > On 2015/11/16 16:58:24, gab wrote: > > Hey ...
5 years ago (2015-11-25 06:11:18 UTC) #17
Matt Giuca
On 2015/11/25 06:11:18, Matt Giuca wrote: > On 2015/11/25 03:37:04, Matt Giuca wrote: > > ...
5 years ago (2015-12-02 02:42:03 UTC) #18
Matt Giuca
Now I have done all the changes I want to do (thanks for the many ...
5 years ago (2015-12-02 02:54:24 UTC) #21
Matt Giuca
https://codereview.chromium.org/623903002/diff/80001/chrome/installer/util/registry_entry.cc File chrome/installer/util/registry_entry.cc (right): https://codereview.chromium.org/623903002/diff/80001/chrome/installer/util/registry_entry.cc#newcode85 chrome/installer/util/registry_entry.cc:85: base::win::RegKey key(root, key_path_.c_str(), KEY_QUERY_VALUE); Note: This was the only ...
5 years ago (2015-12-02 02:54:41 UTC) #22
grt (UTC plus 2)
nice. i'm fine with leaving the tweaks and tests for another CL. thanks for the ...
5 years ago (2015-12-02 18:04:20 UTC) #23
grt (UTC plus 2)
On 2015/12/02 18:04:20, grt wrote: > nice. i'm fine with leaving the tweaks and tests ...
5 years ago (2015-12-02 18:04:30 UTC) #24
gab
lgtm, though I'm surprised the new files are not considered 'A+' (new file copied from ...
5 years ago (2015-12-02 20:58:18 UTC) #25
Will Harris
What was decided for the wow64 stuff here? Will this be exposed in a future ...
5 years ago (2015-12-02 21:00:39 UTC) #26
gab
On 2015/12/02 21:00:39, Will Harris wrote: > What was decided for the wow64 stuff here? ...
5 years ago (2015-12-02 21:31:11 UTC) #27
Will Harris
no, not a showstopper. if/when we need it, we can add it. lgtm
5 years ago (2015-12-02 21:32:30 UTC) #28
Matt Giuca
I don't think similarity works that way. --similarity=X means "if you see a new file, ...
5 years ago (2015-12-02 22:58:04 UTC) #29
Matt Giuca
On 2015/12/02 21:00:39, Will Harris wrote: > What was decided for the wow64 stuff here? ...
5 years ago (2015-12-02 22:59:52 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/623903002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/623903002/80001
5 years ago (2015-12-02 23:01:41 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/143186)
5 years ago (2015-12-02 23:19:11 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/623903002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/623903002/80001
5 years ago (2015-12-03 06:18:58 UTC) #38
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-03 06:55:12 UTC) #40
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/3bfee5e3676510bf8348bb46334a7dbea4a0a181 Cr-Commit-Position: refs/heads/master@{#362923}
5 years ago (2015-12-03 06:56:18 UTC) #42
gab
5 years ago (2015-12-03 15:20:12 UTC) #43
Message was sent while issue was closed.
On 2015/12/02 22:59:52, Matt Giuca wrote:
> On 2015/12/02 21:00:39, Will Harris wrote:
> > What was decided for the wow64 stuff here? Will this be exposed in a future
> CL,
> > or just added if/when we ever need it?
> 
> I think it makes sense to expose it even if not strictly needed. As grt said
in
> #11, "The point of that extra parameter is to force consumers to make a
> conscious choice. Leaving it for later opens up the possibility of
RegistryEntry
> consumers doing the wrong thing because they thought the API was somehow safe
> and protected them from the reality of the registry."
> 
> So I'm conscious of that but I also don't want to block this refactor on it.

SGTM, thanks!

Powered by Google App Engine
This is Rietveld 408576698