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

Issue 1937683002: Implement support in DefaultComponentInstaller for picking up bundled (Closed)

Created:
4 years, 7 months ago by waffles
Modified:
4 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, chasej+watch_chromium.org, Mark Mentovai, Will Harris, Bernhard Bauer
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DefaultComponentInstaller support for bundled components. DefaultComponentInstaller will now pick up component implementations from the plugins directory. It expects the component to have a folder in the plugins directory with the same name as we would store in USER_DATA_DIR. Unlike USER_DATA_DIR, this folder should not contain a set of versioned folders, but the unpacked contents of the CRX itself. As a consequence of this, the installation directory of a component cannot be determined purely by PathService, so I have gone ahead and removed the relevant PathService entries. BUG=608128 Committed: https://crrev.com/cb4f42ca4ef394517e4f94a231ae531f331d4ca8 Cr-Commit-Position: refs/heads/master@{#393961}

Patch Set 1 : Ready for review. #

Total comments: 10

Patch Set 2 : comments up to #9 #

Patch Set 3 : Fix uninstall bug. #

Total comments: 12

Patch Set 4 : comments through #11 #

Total comments: 6

Patch Set 5 : comments through #20 #

Patch Set 6 : comments through #22 #

Patch Set 7 : Replace "system" adjectives with "preinstalled". #

Total comments: 6

Patch Set 8 : comments through #30 #

Total comments: 2

Patch Set 9 : comments through #35 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -116 lines) Patch
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/component_updater/caps_installer_win.cc View 1 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/component_updater/cld_component_installer.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/cld_component_installer.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/cld_component_installer_unittest.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/component_updater/ev_whitelist_component_installer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/component_updater/ev_whitelist_component_installer.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/origin_trials_component_installer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/component_updater/origin_trials_component_installer.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/sth_set_component_installer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/component_updater/sth_set_component_installer.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/supervised_user_whitelist_installer.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win.cc View 1 2 3 2 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/component_updater/widevine_cdm_component_installer.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 3 4 5 6 7 8 2 chunks +23 lines, -0 lines 0 comments Download
M chrome/test/base/chrome_unit_test_suite.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/component_updater/component_updater_paths.h View 1 2 3 4 5 6 7 1 chunk +21 lines, -14 lines 0 comments Download
M components/component_updater/component_updater_paths.cc View 1 2 3 4 5 6 7 3 chunks +29 lines, -22 lines 0 comments Download
M components/component_updater/default_component_installer.h View 1 2 3 4 5 6 5 chunks +11 lines, -5 lines 0 comments Download
M components/component_updater/default_component_installer.cc View 1 2 3 4 5 6 7 10 chunks +58 lines, -23 lines 0 comments Download

Messages

Total messages: 44 (13 generated)
waffles
sorin, xhwang, please take a look. If it lgty, I will include a wider set ...
4 years, 7 months ago (2016-04-30 01:14:28 UTC) #6
xhwang
looking good to me. I just have a few comments/nits. https://codereview.chromium.org/1937683002/diff/60001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/1937683002/diff/60001/chrome/app/chrome_main_delegate.cc#newcode727 ...
4 years, 7 months ago (2016-05-02 17:47:00 UTC) #7
Sorin Jianu
I will take another look after this code is changed per xhwang@ suggestions. https://codereview.chromium.org/1937683002/diff/60001/components/component_updater/default_component_installer.h File ...
4 years, 7 months ago (2016-05-03 00:04:43 UTC) #8
waffles
https://codereview.chromium.org/1937683002/diff/60001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/1937683002/diff/60001/chrome/app/chrome_main_delegate.cc#newcode727 chrome/app/chrome_main_delegate.cc:727: component_updater::RegisterPathProvider(chrome::DIR_INTERNAL_PLUGINS, On 2016/05/02 17:46:59, xhwang wrote: > Components are ...
4 years, 7 months ago (2016-05-03 21:04:23 UTC) #10
Sorin Jianu
lgtm thank you! https://codereview.chromium.org/1937683002/diff/120001/components/component_updater/default_component_installer.cc File components/component_updater/default_component_installer.cc (left): https://codereview.chromium.org/1937683002/diff/120001/components/component_updater/default_component_installer.cc#oldcode199 components/component_updater/default_component_installer.cc:199: if (latest_manifest) { was this a ...
4 years, 7 months ago (2016-05-03 21:51:24 UTC) #11
waffles
https://codereview.chromium.org/1937683002/diff/120001/components/component_updater/default_component_installer.cc File components/component_updater/default_component_installer.cc (left): https://codereview.chromium.org/1937683002/diff/120001/components/component_updater/default_component_installer.cc#oldcode199 components/component_updater/default_component_installer.cc:199: if (latest_manifest) { On 2016/05/03 21:51:24, Sorin Jianu wrote: ...
4 years, 7 months ago (2016-05-03 22:14:05 UTC) #12
xhwang
Thanks! I still have concerns about putting components in DIR_INTERNAL_PLUGINS :) Otherwise it looks good. ...
4 years, 7 months ago (2016-05-03 22:49:42 UTC) #13
waffles
wfh, andrewhayden, bauerb; please take a look and let me know what you think. Will: ...
4 years, 7 months ago (2016-05-04 00:58:08 UTC) #15
Bernhard Bauer
supervised_users/ code looks fine to me. Some possible cleanup though: https://codereview.chromium.org/1937683002/diff/140001/components/component_updater/component_updater_paths.cc File components/component_updater/component_updater_paths.cc (right): https://codereview.chromium.org/1937683002/diff/140001/components/component_updater/component_updater_paths.cc#newcode50 ...
4 years, 7 months ago (2016-05-04 08:57:37 UTC) #16
Will Harris
my gut tells me we shouldn't be using DIR_INTERNAL_PLUGINS for this, can't we create a ...
4 years, 7 months ago (2016-05-09 23:08:14 UTC) #17
waffles
On 2016/05/09 23:08:14, Will Harris wrote: > my gut tells me we shouldn't be using ...
4 years, 7 months ago (2016-05-09 23:14:13 UTC) #18
Will Harris
did you get to the bottom of why the strange handling is needed on OS ...
4 years, 7 months ago (2016-05-09 23:18:01 UTC) #19
Andrew Hayden (chromium.org)
LGTM for CLD stuff. FWIW, CLD2 component update code is dead. I will clean it ...
4 years, 7 months ago (2016-05-10 08:42:16 UTC) #20
waffles
On 2016/05/09 23:18:01, Will Harris wrote: > did you get to the bottom of why ...
4 years, 7 months ago (2016-05-10 18:15:53 UTC) #21
xhwang
https://codereview.chromium.org/1937683002/diff/120001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/1937683002/diff/120001/chrome/app/chrome_main_delegate.cc#newcode727 chrome/app/chrome_main_delegate.cc:727: component_updater::RegisterPathProvider(chrome::DIR_INTERNAL_PLUGINS, On 2016/05/10 18:15:53, waffles wrote: > On 2016/05/03 ...
4 years, 7 months ago (2016-05-10 18:58:20 UTC) #22
waffles
https://codereview.chromium.org/1937683002/diff/120001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/1937683002/diff/120001/chrome/app/chrome_main_delegate.cc#newcode727 chrome/app/chrome_main_delegate.cc:727: component_updater::RegisterPathProvider(chrome::DIR_INTERNAL_PLUGINS, On 2016/05/10 18:58:20, xhwang wrote: > On 2016/05/10 ...
4 years, 7 months ago (2016-05-11 21:42:57 UTC) #23
xhwang
lgtm
4 years, 7 months ago (2016-05-12 00:48:15 UTC) #24
waffles
thakis: Need your review for chrome/common/chrome_paths.*; please also cover chrome/app/chrome_main_delegate.cc.
4 years, 7 months ago (2016-05-12 01:05:12 UTC) #26
Bernhard Bauer
https://codereview.chromium.org/1937683002/diff/140001/components/component_updater/component_updater_paths.cc File components/component_updater/component_updater_paths.cc (right): https://codereview.chromium.org/1937683002/diff/140001/components/component_updater/component_updater_paths.cc#newcode50 components/component_updater/component_updater_paths.cc:50: case DIR_SUPERVISED_USER_WHITELISTS: On 2016/05/10 18:15:53, waffles wrote: > On ...
4 years, 7 months ago (2016-05-12 08:37:22 UTC) #27
waffles
https://codereview.chromium.org/1937683002/diff/140001/components/component_updater/component_updater_paths.cc File components/component_updater/component_updater_paths.cc (right): https://codereview.chromium.org/1937683002/diff/140001/components/component_updater/component_updater_paths.cc#newcode50 components/component_updater/component_updater_paths.cc:50: case DIR_SUPERVISED_USER_WHITELISTS: On 2016/05/12 08:37:22, Bernhard Bauer wrote: > ...
4 years, 7 months ago (2016-05-12 17:06:07 UTC) #28
Sorin Jianu
lgtm Thank you! Maybe constnits below. https://codereview.chromium.org/1937683002/diff/200001/components/component_updater/default_component_installer.cc File components/component_updater/default_component_installer.cc (right): https://codereview.chromium.org/1937683002/diff/200001/components/component_updater/default_component_installer.cc#newcode162 components/component_updater/default_component_installer.cc:162: std::unique_ptr<base::DictionaryValue> manifest = ...
4 years, 7 months ago (2016-05-12 17:22:07 UTC) #29
Bernhard Bauer
https://codereview.chromium.org/1937683002/diff/140001/components/component_updater/component_updater_paths.cc File components/component_updater/component_updater_paths.cc (right): https://codereview.chromium.org/1937683002/diff/140001/components/component_updater/component_updater_paths.cc#newcode50 components/component_updater/component_updater_paths.cc:50: case DIR_SUPERVISED_USER_WHITELISTS: On 2016/05/12 17:06:07, waffles wrote: > On ...
4 years, 7 months ago (2016-05-12 17:28:59 UTC) #30
waffles
Thanks, all! thakis: PTAL. Would be nice to catch a dev build before the branch ...
4 years, 7 months ago (2016-05-13 18:19:13 UTC) #31
Nico
Hm, won't overwriting files in the bundle at runtime confuse the bundle code signing bits? ...
4 years, 7 months ago (2016-05-16 21:07:01 UTC) #32
waffles
On 2016/05/16 21:07:01, Nico (vacation May 19 to 22) wrote: > Hm, won't overwriting files ...
4 years, 7 months ago (2016-05-16 21:09:07 UTC) #33
Nico
lgtm https://codereview.chromium.org/1937683002/diff/220001/chrome/common/chrome_paths.cc File chrome/common/chrome_paths.cc (right): https://codereview.chromium.org/1937683002/diff/220001/chrome/common/chrome_paths.cc#newcode88 chrome/common/chrome_paths.cc:88: // Gets the path for internal plugins. this ...
4 years, 7 months ago (2016-05-16 21:09:52 UTC) #34
Greg K
On 2016/05/16 21:09:07, waffles wrote: > On 2016/05/16 21:07:01, Nico (vacation May 19 to 22) ...
4 years, 7 months ago (2016-05-16 21:10:09 UTC) #35
waffles
Thanks all! (Will and Bernhard moved to cc.) https://codereview.chromium.org/1937683002/diff/220001/chrome/common/chrome_paths.cc File chrome/common/chrome_paths.cc (right): https://codereview.chromium.org/1937683002/diff/220001/chrome/common/chrome_paths.cc#newcode88 chrome/common/chrome_paths.cc:88: // ...
4 years, 7 months ago (2016-05-16 21:32:34 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1937683002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1937683002/240001
4 years, 7 months ago (2016-05-16 21:43:01 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:240001)
4 years, 7 months ago (2016-05-16 22:50:47 UTC) #42
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 22:52:09 UTC) #44
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/cb4f42ca4ef394517e4f94a231ae531f331d4ca8
Cr-Commit-Position: refs/heads/master@{#393961}

Powered by Google App Engine
This is Rietveld 408576698