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

Issue 879993005: Add support for uninstalling components and use it in SupervisedUserWhitelistInstaller. (Closed)

Created:
5 years, 11 months ago by Bernhard Bauer
Modified:
5 years, 9 months ago
Reviewers:
Marc Treib, Sorin Jianu, agl
CC:
chromium-reviews, cbentzel+watch_chromium.org, pam+watch_chromium.org, waffles, cpu_(ooo_6.6-7.5)
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for uninstalling components and use it in SupervisedUserWhitelistInstaller. TBR=agl@chromium.org BUG=436459 Committed: https://crrev.com/1f6657e7f1cf36e7a490c494c0794b124c86b6ec Cr-Commit-Position: refs/heads/master@{#315246}

Patch Set 1 #

Patch Set 2 : rewrite #

Patch Set 3 : . #

Patch Set 4 : cleanup #

Patch Set 5 : fixes #

Patch Set 6 : x #

Total comments: 2

Patch Set 7 : rebase #

Patch Set 8 : review #

Patch Set 9 : rebase #

Total comments: 20

Patch Set 10 : review #

Patch Set 11 : cleanup #

Total comments: 12

Patch Set 12 : review #

Patch Set 13 : fix #

Total comments: 1

Patch Set 14 : review #

Total comments: 2

Patch Set 15 : fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -23 lines) Patch
M chrome/browser/component_updater/pepper_flash_component_installer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/pnacl/pnacl_component_installer.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/component_updater/pnacl/pnacl_component_installer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/recovery_component_installer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/supervised_user_whitelist_installer.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/supervised_user_whitelist_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/component_updater/swiftshader_component_installer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/test/supervised_user_whitelist_installer_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +32 lines, -5 lines 0 comments Download
M chrome/browser/net/crl_set_fetcher.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/crl_set_fetcher.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_whitelist_service.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/supervised_user/supervised_user_whitelist_service_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/component_updater/component_updater_service.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M components/component_updater/component_updater_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +37 lines, -1 line 1 comment Download
M components/component_updater/default_component_installer.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M components/component_updater/default_component_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +39 lines, -2 lines 0 comments Download
M components/update_client/crx_update_item.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M components/update_client/test/test_installer.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M components/update_client/test/test_installer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M components/update_client/update_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M components/update_client/update_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (10 generated)
Bernhard Bauer
Please review. Marc: Supervised user code Sorin: Component code Thanks!
5 years, 10 months ago (2015-02-03 19:17:54 UTC) #3
Marc Treib
c/b/supervised_user/ lgtm https://codereview.chromium.org/879993005/diff/100001/chrome/browser/component_updater/supervised_user_whitelist_installer.cc File chrome/browser/component_updater/supervised_user_whitelist_installer.cc (right): https://codereview.chromium.org/879993005/diff/100001/chrome/browser/component_updater/supervised_user_whitelist_installer.cc#newcode156 chrome/browser/component_updater/supervised_user_whitelist_installer.cc:156: auto it = installers_.find(crx_id); nit: DCHECK_NE(it, installers_.end()) ...
5 years, 10 months ago (2015-02-04 09:55:46 UTC) #4
Bernhard Bauer
Per discussion with Sorin, pulled out the refcounting changes into a separate CL (https://codereview.chromium.org/897873002/). https://codereview.chromium.org/879993005/diff/100001/chrome/browser/component_updater/supervised_user_whitelist_installer.cc ...
5 years, 10 months ago (2015-02-04 11:28:40 UTC) #6
Sorin Jianu
Thank you! Let's discuss. We like the idea of lazy unregistration if the component is ...
5 years, 10 months ago (2015-02-05 22:55:36 UTC) #7
Bernhard Bauer
Thanks for the review! Some replied below, and I'll make changes tomorrow. https://codereview.chromium.org/879993005/diff/160001/chrome/browser/component_updater/supervised_user_whitelist_installer.cc File chrome/browser/component_updater/supervised_user_whitelist_installer.cc ...
5 years, 10 months ago (2015-02-05 23:57:35 UTC) #8
Sorin Jianu
Thank you! Will take anther look as soon as the patch is up. https://codereview.chromium.org/879993005/diff/160001/chrome/browser/component_updater/supervised_user_whitelist_installer.cc File ...
5 years, 10 months ago (2015-02-06 00:22:05 UTC) #9
Bernhard Bauer
PTAL! I now only mark work items as unregistered, then remove them when the component ...
5 years, 10 months ago (2015-02-06 16:05:05 UTC) #10
Sorin Jianu
Thank you, pretty cool! Main ask here is to refactor a block of code as ...
5 years, 10 months ago (2015-02-06 19:11:58 UTC) #11
Bernhard Bauer
Thanks for the review! https://codereview.chromium.org/879993005/diff/200001/chrome/browser/component_updater/supervised_user_whitelist_installer.cc File chrome/browser/component_updater/supervised_user_whitelist_installer.cc (right): https://codereview.chromium.org/879993005/diff/200001/chrome/browser/component_updater/supervised_user_whitelist_installer.cc#newcode152 chrome/browser/component_updater/supervised_user_whitelist_installer.cc:152: ComponentUpdateService::Status status = cus_->UnregisterComponent(crx_id); On ...
5 years, 10 months ago (2015-02-06 22:49:03 UTC) #12
Sorin Jianu
Thank you! https://codereview.chromium.org/879993005/diff/240001/components/component_updater/component_updater_service.cc File components/component_updater/component_updater_service.cc (right): https://codereview.chromium.org/879993005/diff/240001/components/component_updater/component_updater_service.cc#newcode539 components/component_updater/component_updater_service.cc:539: UninstallUnregisteredItems(); Need to move this call at ...
5 years, 10 months ago (2015-02-06 23:00:30 UTC) #13
Sorin Jianu
lgtm Thank you! https://codereview.chromium.org/879993005/diff/260001/components/component_updater/component_updater_service.cc File components/component_updater/component_updater_service.cc (right): https://codereview.chromium.org/879993005/diff/260001/components/component_updater/component_updater_service.cc#newcode545 components/component_updater/component_updater_service.cc:545: UninstallUnregisteredItems(); Thank you for moving the ...
5 years, 10 months ago (2015-02-07 02:20:36 UTC) #14
Bernhard Bauer
Adding Adam for chrome/browser/net/ OWNERS TBR (updating CrlSetFetcher to implement a new method in the ...
5 years, 10 months ago (2015-02-08 13:52:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/879993005/260001
5 years, 10 months ago (2015-02-08 13:53:34 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/30344)
5 years, 10 months ago (2015-02-08 15:07:00 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/879993005/260001
5 years, 10 months ago (2015-02-08 16:59:58 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/30357)
5 years, 10 months ago (2015-02-08 18:12:25 UTC) #24
Bernhard Bauer
https://codereview.chromium.org/879993005/diff/280001/components/component_updater/component_updater_service.cc File components/component_updater/component_updater_service.cc (right): https://codereview.chromium.org/879993005/diff/280001/components/component_updater/component_updater_service.cc#newcode513 components/component_updater/component_updater_service.cc:513: return blocking_task_runner_; I had to make this change because ...
5 years, 10 months ago (2015-02-08 23:20:40 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/879993005/280001
5 years, 10 months ago (2015-02-08 23:21:53 UTC) #28
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 10 months ago (2015-02-09 00:00:38 UTC) #29
commit-bot: I haz the power
5 years, 10 months ago (2015-02-09 00:01:30 UTC) #30
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/1f6657e7f1cf36e7a490c494c0794b124c86b6ec
Cr-Commit-Position: refs/heads/master@{#315246}

Powered by Google App Engine
This is Rietveld 408576698