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

Issue 334783002: Componentize component_updater: Move some paths/constants to component. (Closed)

Created:
6 years, 6 months ago by tommycli
Modified:
6 years, 5 months ago
CC:
chromium-reviews, cpu_(ooo_6.6-7.5)
Project:
chromium
Visibility:
Public.

Description

Break some of the chrome/common dependencies in implementation by moving some paths and constants to the component. Design doc: https://docs.google.com/document/d/1F76yNZCnPnGzgNXhI-sCFKlXulwx_s_OKTGbJS5NhbA/edit?usp=sharing BUG=371463 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281744

Patch Set 1 : Break chrome/common dependencies for CldComponentInstaller. #

Patch Set 2 : Break chrome/common dependencies for ComponentUpdaterConfigurator. #

Patch Set 3 : Break chrome/common dependencies for ComponentUpdater. #

Patch Set 4 : Remove chrome/common dependency of ComponentUpdaterUtils. #

Patch Set 5 : #

Patch Set 6 : Remove chrome/common deps for RecoveryComponentInstaller and SwiftShaderInstaller #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 10

Patch Set 9 : address blundell comments #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 4

Patch Set 12 : change all to application_version and run git cl format #

Patch Set 13 : merge origin/master #

Total comments: 12

Patch Set 14 : consolidate component updater paths and constants to their own file in components/ #

Patch Set 15 : clean up formatting. #

Patch Set 16 : Rebase onto a bunch of good changes to help this along #

Patch Set 17 : Remove changes related to Configurator. #

Patch Set 18 : remove more extraneous changes #

Patch Set 19 : remove an include #

Patch Set 20 : rebase #

Total comments: 14

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Total comments: 5

Patch Set 24 : address thestig comments #

Patch Set 25 : #

Patch Set 26 : rebase #

Patch Set 27 : add component updater to common dependency list #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -62 lines) Patch
M chrome/app/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/component_updater/cld_component_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/component_patcher_operation.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/component_updater/component_updater_configurator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/recovery_component_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/component_updater/swiftshader_component_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/component_updater/widevine_cdm_component_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/test/base/chrome_unit_test_suite.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +5 lines, -0 lines 0 comments Download
A + components/component_updater.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +7 lines, -5 lines 0 comments Download
A + components/component_updater/DEPS View 1 2 3 4 5 6 7 8 0 chunks +-1 lines, --1 lines 0 comments Download
A components/component_updater/component_updater_paths.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +29 lines, -0 lines 0 comments Download
A components/component_updater/component_updater_paths.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +50 lines, -0 lines 0 comments Download
A + components/component_updater/component_updater_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +4 lines, -4 lines 0 comments Download
A components/component_updater/component_updater_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +13 lines, -0 lines 0 comments Download
A + components/component_updater/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +6 lines, -7 lines 0 comments Download
A components/component_updater/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +13 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 55 (0 generated)
tommycli
waffles: This patch breaks a lot of the "simple" dependencies on chrome/common - mostly constants. ...
6 years, 6 months ago (2014-06-16 23:37:26 UTC) #1
blundell
https://codereview.chromium.org/334783002/diff/140001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/334783002/diff/140001/chrome/browser/browser_process_impl.cc#newcode803 chrome/browser/browser_process_impl.cc:803: Tokenize(cmdline->GetSwitchValueASCII(switches::kComponentUpdater), is the reason that you moved this code ...
6 years, 6 months ago (2014-06-17 17:26:43 UTC) #2
tommycli
blundell: addressed your comments below. thanks! https://codereview.chromium.org/334783002/diff/140001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/334783002/diff/140001/chrome/browser/browser_process_impl.cc#newcode803 chrome/browser/browser_process_impl.cc:803: Tokenize(cmdline->GetSwitchValueASCII(switches::kComponentUpdater), On 2014/06/17 ...
6 years, 6 months ago (2014-06-17 19:01:57 UTC) #3
blundell
LGTM https://codereview.chromium.org/334783002/diff/200001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/334783002/diff/200001/chrome/browser/browser_process_impl.cc#newcode805 chrome/browser/browser_process_impl.cc:805: configurator, chrome::VersionInfo().Version(), nit: I think these should all ...
6 years, 6 months ago (2014-06-17 19:16:24 UTC) #4
tommycli
https://codereview.chromium.org/334783002/diff/200001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/334783002/diff/200001/chrome/browser/browser_process_impl.cc#newcode805 chrome/browser/browser_process_impl.cc:805: configurator, chrome::VersionInfo().Version(), On 2014/06/17 19:16:24, blundell wrote: > nit: ...
6 years, 6 months ago (2014-06-17 19:31:07 UTC) #5
Sorin Jianu
I will try to get to this review tomorrow. I am behind things as I ...
6 years, 6 months ago (2014-06-18 01:10:01 UTC) #6
tommycli
On 2014/06/18 01:10:01, Sorin Jianu wrote: > I will try to get to this review ...
6 years, 6 months ago (2014-06-18 18:15:25 UTC) #7
waffles
https://codereview.chromium.org/334783002/diff/240001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/334783002/diff/240001/chrome/browser/chrome_browser_main.cc#newcode390 chrome/browser/chrome_browser_main.cc:390: cus, g_browser_process->local_state(), recovery_base_dir); Can we avoid passing these directories ...
6 years, 6 months ago (2014-06-18 22:30:37 UTC) #8
tommycli
https://codereview.chromium.org/334783002/diff/240001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/334783002/diff/240001/chrome/browser/chrome_browser_main.cc#newcode390 chrome/browser/chrome_browser_main.cc:390: cus, g_browser_process->local_state(), recovery_base_dir); On 2014/06/18 22:30:37, waffles wrote: > ...
6 years, 6 months ago (2014-06-19 00:28:40 UTC) #9
waffles
On 2014/06/19 00:28:40, tommycli wrote: > https://codereview.chromium.org/334783002/diff/240001/chrome/browser/chrome_browser_main.cc > File chrome/browser/chrome_browser_main.cc (right): > > https://codereview.chromium.org/334783002/diff/240001/chrome/browser/chrome_browser_main.cc#newcode390 > ...
6 years, 6 months ago (2014-06-19 00:32:45 UTC) #10
Sorin Jianu
Tommy, thank you for working on this. I have some ideas about how to organize ...
6 years, 6 months ago (2014-06-19 00:48:22 UTC) #11
tommycli
On 2014/06/19 00:48:22, Sorin Jianu wrote: > Tommy, thank you for working on this. I ...
6 years, 6 months ago (2014-06-20 23:44:28 UTC) #12
blundell
On 2014/06/20 23:44:28, tommycli wrote: > On 2014/06/19 00:48:22, Sorin Jianu wrote: > > Tommy, ...
6 years, 6 months ago (2014-06-23 14:27:35 UTC) #13
tommycli
On 2014/06/23 14:27:35, blundell wrote: > On 2014/06/20 23:44:28, tommycli wrote: > > On 2014/06/19 ...
6 years, 6 months ago (2014-06-23 20:59:52 UTC) #14
Sorin Jianu
I second Tommy's idea. The ComponentUpdateService::Configurator is an abstract interface. We use it with success ...
6 years, 6 months ago (2014-06-23 21:38:52 UTC) #15
tommycli
Hi sorin, I consolidated all the paths and constants under components/, and removed all the ...
6 years, 6 months ago (2014-06-23 21:55:28 UTC) #16
Sorin Jianu
Tommy, I am just in the process of moving config stuff around. First change is ...
6 years, 6 months ago (2014-06-23 21:58:10 UTC) #17
tommycli
On 2014/06/23 21:58:10, Sorin Jianu wrote: > Tommy, I am just in the process of ...
6 years, 6 months ago (2014-06-23 22:04:27 UTC) #18
blundell
On 2014/06/23 20:59:52, tommycli wrote: > On 2014/06/23 14:27:35, blundell wrote: > > On 2014/06/20 ...
6 years, 6 months ago (2014-06-24 14:11:41 UTC) #19
tommycli
sorin: This patch now just moves some paths and constants into components/component_updater. I'm going to ...
6 years, 5 months ago (2014-06-26 21:58:20 UTC) #20
Sorin Jianu
Tommy, I will take a look after my change lands and this code is rebased. ...
6 years, 5 months ago (2014-06-26 22:02:51 UTC) #21
tommycli
On 2014/06/26 22:02:51, Sorin Jianu wrote: > Tommy, I will take a look after my ...
6 years, 5 months ago (2014-06-26 22:07:42 UTC) #22
Sorin Jianu
The CQ bit was checked by sorin@chromium.org
6 years, 5 months ago (2014-06-26 22:30:34 UTC) #23
Sorin Jianu
The CQ bit was unchecked by sorin@chromium.org
6 years, 5 months ago (2014-06-26 22:30:37 UTC) #24
tommycli
sorin: I rebased onto your patch. I have some questions, listed below: Thanks! https://codereview.chromium.org/334783002/diff/380001/chrome/common/chrome_paths.cc File ...
6 years, 5 months ago (2014-06-27 17:48:12 UTC) #25
Sorin Jianu
Thank you Tommy. First, it appears that we have not added new members to the ...
6 years, 5 months ago (2014-06-30 22:27:53 UTC) #26
tommycli
Hi sorin, Yes, the configurator changes will be a different CL. I tried to keep ...
6 years, 5 months ago (2014-07-01 00:03:04 UTC) #27
tommycli
sorin: Oh, and one more thing: I got rid of component_updater_constants. It was unnecessary. I ...
6 years, 5 months ago (2014-07-01 00:04:06 UTC) #28
tommycli
thestig: I have a question on PathProvider, below. https://codereview.chromium.org/334783002/diff/440001/components/component_updater/component_updater_paths.cc File components/component_updater/component_updater_paths.cc (right): https://codereview.chromium.org/334783002/diff/440001/components/component_updater/component_updater_paths.cc#newcode46 components/component_updater/component_updater_paths.cc:46: void ...
6 years, 5 months ago (2014-07-01 00:05:36 UTC) #29
Lei Zhang
https://codereview.chromium.org/334783002/diff/440001/components/component_updater/component_updater_paths.cc File components/component_updater/component_updater_paths.cc (right): https://codereview.chromium.org/334783002/diff/440001/components/component_updater/component_updater_paths.cc#newcode21 components/component_updater/component_updater_paths.cc:21: NOTREACHED(); Just DCHECK instead of handling? https://codereview.chromium.org/334783002/diff/440001/components/component_updater/component_updater_paths.cc#newcode46 components/component_updater/component_updater_paths.cc:46: void ...
6 years, 5 months ago (2014-07-01 00:23:29 UTC) #30
tommycli
https://codereview.chromium.org/334783002/diff/440001/components/component_updater/component_updater_paths.cc File components/component_updater/component_updater_paths.cc (right): https://codereview.chromium.org/334783002/diff/440001/components/component_updater/component_updater_paths.cc#newcode21 components/component_updater/component_updater_paths.cc:21: NOTREACHED(); On 2014/07/01 00:23:29, Lei Zhang wrote: > Just ...
6 years, 5 months ago (2014-07-01 00:28:56 UTC) #31
tommycli
thestig: may i have a review for: chrome/app chrome/common chrome/test/base ?
6 years, 5 months ago (2014-07-01 00:29:59 UTC) #32
Lei Zhang
chrome/ lgtm
6 years, 5 months ago (2014-07-01 05:44:32 UTC) #33
tommycli
sorin: addressed your comments, thanks!
6 years, 5 months ago (2014-07-01 17:26:55 UTC) #34
Sorin Jianu
lgtm Thank you Tommy! In case, you did not do this already, please run lint ...
6 years, 5 months ago (2014-07-01 18:00:27 UTC) #35
tommycli
On 2014/07/01 18:00:27, Sorin Jianu wrote: > lgtm > > Thank you Tommy! > > ...
6 years, 5 months ago (2014-07-01 18:39:07 UTC) #36
Sorin Jianu
We run: git cl lint git cl format
6 years, 5 months ago (2014-07-01 18:46:52 UTC) #37
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 5 months ago (2014-07-07 16:20:07 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/334783002/500001
6 years, 5 months ago (2014-07-07 16:20:42 UTC) #39
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-07 18:06:28 UTC) #40
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-07 18:14:38 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/27978)
6 years, 5 months ago (2014-07-07 18:14:39 UTC) #42
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 5 months ago (2014-07-07 19:25:57 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/334783002/500001
6 years, 5 months ago (2014-07-07 19:27:39 UTC) #44
tommycli
The CQ bit was unchecked by tommycli@chromium.org
6 years, 5 months ago (2014-07-07 19:28:18 UTC) #45
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 5 months ago (2014-07-07 19:42:44 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/334783002/520001
6 years, 5 months ago (2014-07-07 19:43:39 UTC) #47
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 5 months ago (2014-07-08 00:32:59 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/334783002/560001
6 years, 5 months ago (2014-07-08 00:33:41 UTC) #49
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-08 04:00:51 UTC) #50
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-08 04:28:13 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/90547)
6 years, 5 months ago (2014-07-08 04:28:14 UTC) #52
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 5 months ago (2014-07-08 13:34:56 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/334783002/560001
6 years, 5 months ago (2014-07-08 13:35:20 UTC) #54
commit-bot: I haz the power
6 years, 5 months ago (2014-07-08 14:17:05 UTC) #55
Message was sent while issue was closed.
Change committed as 281744

Powered by Google App Engine
This is Rietveld 408576698