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

Issue 897873002: Make ComponentInstaller refcounted. (Closed)

Created:
5 years, 10 months ago by Bernhard Bauer
Modified:
5 years, 10 months ago
Reviewers:
Lei Zhang, Sorin Jianu, agl
CC:
chromium-reviews, cbentzel+watch_chromium.org, pam+watch_chromium.org, waffles
Base URL:
https://chromium.googlesource.com/chromium/src@2015_01_19_component_installer
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ComponentInstaller refcounted. Before this CL, component installers were leaked in almost all cases. If we allow uninstalling components (see https://codereview.chromium.org/879993005/), we need to fix those leaks. BUG=436459 Committed: https://crrev.com/810e60f487982e8edc208b78b0b4b2b2a12a77a0 Cr-Commit-Position: refs/heads/master@{#314701}

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -177 lines) Patch
M chrome/browser/browser_process_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_process_impl.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/component_updater/pepper_flash_component_installer.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/pnacl/pnacl_component_installer.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/pnacl/pnacl_component_installer.cc View 4 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/component_updater/recovery_component_installer.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/component_updater/supervised_user_whitelist_installer.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/component_updater/swiftshader_component_installer.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/test/component_updater_service_unittest.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/component_updater/test/component_updater_service_unittest.cc View 24 chunks +92 lines, -82 lines 0 comments Download
M chrome/browser/component_updater/test/supervised_user_whitelist_installer_unittest.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/net/crl_set_fetcher.h View 1 chunk +1 line, -2 lines 0 comments Download
M components/component_updater/component_updater_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/component_updater/default_component_installer.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/component_updater/default_component_installer.cc View 1 4 chunks +10 lines, -10 lines 0 comments Download
M components/update_client/component_patcher.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/update_client/component_patcher.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/update_client/component_patcher_operation.h View 7 chunks +14 lines, -13 lines 0 comments Download
M components/update_client/component_patcher_operation.cc View 5 chunks +11 lines, -10 lines 0 comments Download
M components/update_client/component_unpacker.h View 2 chunks +8 lines, -7 lines 0 comments Download
M components/update_client/component_unpacker.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M components/update_client/test/component_patcher_unittest.h View 1 chunk +1 line, -1 line 0 comments Download
M components/update_client/test/component_patcher_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/update_client/test/test_installer.h View 4 chunks +12 lines, -6 lines 0 comments Download
M components/update_client/test/test_installer.cc View 1 chunk +1 line, -6 lines 0 comments Download
M components/update_client/update_client.h View 4 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Bernhard Bauer
As discussed, please review.
5 years, 10 months ago (2015-02-04 11:28:04 UTC) #2
Sorin Jianu
lgtm Nice, thank you!
5 years, 10 months ago (2015-02-04 18:35:50 UTC) #3
Bernhard Bauer
Adding OWNERS. Lei: c/b/browser_process_impl.* Adam: c/b/n/crl_set_fetcher.h
5 years, 10 months ago (2015-02-04 21:54:46 UTC) #5
Lei Zhang
Can you elaborate on how they are leaking? Looking at the |pnacl_component_installer_| example, we never ...
5 years, 10 months ago (2015-02-04 22:21:52 UTC) #6
Bernhard Bauer
On 2015/02/04 22:21:52, Lei Zhang wrote: > Can you elaborate on how they are leaking? ...
5 years, 10 months ago (2015-02-04 22:50:55 UTC) #7
Lei Zhang
browser_process_impl.* lgtm https://codereview.chromium.org/897873002/diff/1/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/897873002/diff/1/chrome/browser/browser_process_impl.cc#newcode881 chrome/browser/browser_process_impl.cc:881: if (!crl_set_fetcher_) On 2015/02/04 22:50:55, Bernhard Bauer ...
5 years, 10 months ago (2015-02-04 23:39:57 UTC) #8
agl
LGTM for CRLSet change.
5 years, 10 months ago (2015-02-04 23:46:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/897873002/60001
5 years, 10 months ago (2015-02-05 00:11:43 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:60001)
5 years, 10 months ago (2015-02-05 01:09:39 UTC) #15
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 01:10:25 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/810e60f487982e8edc208b78b0b4b2b2a12a77a0
Cr-Commit-Position: refs/heads/master@{#314701}

Powered by Google App Engine
This is Rietveld 408576698