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

Issue 1578833003: Moved shell_util functions into new shell_registry_util module. (Closed)

Created:
4 years, 11 months ago by Matt Giuca
Modified:
3 years, 3 months ago
Reviewers:
gab
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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Moved shell_util functions into new shell_registry_util module. These functions were previously static methods of RegistryEntry which were taken out in r362608. This CL moves them into a separate file just to avoid shell_util from being a giant mega-file. BUG=419972

Patch Set 1 #

Patch Set 2 : Rebase off CL 1579583004. #

Patch Set 3 : Fix Windows compile. #

Patch Set 4 : Rebase. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+605 lines, -500 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/shell_registry_util.h View 1 2 1 chunk +146 lines, -0 lines 0 comments Download
A chrome/installer/util/shell_registry_util.cc View 1 2 3 4 1 chunk +421 lines, -0 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 16 chunks +34 lines, -500 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578833003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578833003/40001
4 years, 11 months ago (2016-01-12 03:55:15 UTC) #3
Matt Giuca
4 years, 11 months ago (2016-01-12 04:37:15 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-12 04:43:01 UTC) #7
gab
I would actually go a step further and also move all of the methods that ...
4 years, 11 months ago (2016-01-12 20:16:14 UTC) #8
gab
FYI just saw this CL (https://codereview.chromium.org/1581473002) go by which will probably result in merge conflicts.
4 years, 11 months ago (2016-01-12 20:47:12 UTC) #9
Matt Giuca
OK I will take a look at which other methods deserve to be moved. On ...
4 years, 11 months ago (2016-01-12 23:04:57 UTC) #10
Matt Giuca
Rebased. Urgh, the merge conflicts for this sort of CL are very difficult and dangerous. ...
4 years, 11 months ago (2016-01-21 03:40:03 UTC) #11
gab
4 years, 11 months ago (2016-01-21 19:35:51 UTC) #12
On 2016/01/21 03:40:03, Matt Giuca wrote:
> Rebased.
> 
> Urgh, the merge conflicts for this sort of CL are very difficult and
dangerous.
> I can feel the same thing happening again as has happened a few times with
these
> shell_util refactors: the longer these CLs remain in flight, the harder it
> becomes to update.

Right, since they're just move though it's probably best to just redo the whole
move anywhere there's a conflict.

> 
> Can we land them in small steps instead of trying to refactor the world?
> 
> I had a small try at moving the remaining functions but they have lots and
lots
> of pieces and it got complicated. Also it isn't clear to me which ones. Let's
> just land this and then look at that later, please? (They can go back to being
> anonymous functions if they aren't used by any external functions.)

I don't like making a ton of code public only to all bring it back to anonymous
(I think it all should be anonymous and I think all of the existing callers
still in shell_util.cc in this CL are the ones that should move from the public
API of shell_util.h to the public API of shell_registry_util.h).

I can take this on from here if you want since I know what I have in mind and
it's probably easier that way for this final bit (plus I see most/all CLs that
go through here so merge conflicts should be easier for me to resolve/avoid)?

Powered by Google App Engine
This is Rietveld 408576698