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

Issue 160311: Pull CrxInstaller out of ExtensionsService. (Closed)

Created:
11 years, 4 months ago by Aaron Boodman
Modified:
5 years, 11 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Pull CrxInstaller out of ExtensionsService. CrxInstaller is a new stateful object that encapsulates a single installation from unpack through notification. It currently contains the UI bits, but I suspect in the next CL (where I will finally implement the install UI) these will come out and CrxInstaller will become SilentCrxInstaller, and only used for updates and external installs. Also in this change, I removed the concept of install callbacks that ExtensionUpdater was using. This was only used to delete the temp crx file as far as I can tell, and we can easily keep state about that in CrxInstaller. With this CL, ExtensionsServiceBackend is almost completely dead, with only a few zombie methods left like LoadAllExtensions(). These should all become little objects like CrxInstaller that hold a reference to ExtensionsService over their lifetime and then kill themselves. I'll get to that eventually. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22043

Patch Set 1 #

Total comments: 34

Patch Set 2 : response to feedback #

Patch Set 3 : Whoops, remove DCHECKs #

Total comments: 1

Patch Set 4 : Fix leak of SandboxedExtensionUnpacker #

Unified diffs Side-by-side diffs Delta from patch set Stats (+576 lines, -634 lines) Patch
A chrome/browser/extensions/crx_installer.h View 1 2 3 1 chunk +141 lines, -0 lines 0 comments Download
A chrome/browser/extensions/crx_installer.cc View 1 2 3 1 chunk +193 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_updater.cc View 1 chunk +1 line, -8 lines 0 comments Download
M chrome/browser/extensions/extension_updater_unittest.cc View 6 chunks +3 lines, -44 lines 0 comments Download
M chrome/browser/extensions/extensions_service.h View 11 chunks +27 lines, -92 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 12 chunks +73 lines, -308 lines 0 comments Download
M chrome/browser/extensions/extensions_service_unittest.cc View 1 15 chunks +21 lines, -77 lines 0 comments Download
M chrome/browser/extensions/external_extension_provider.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/external_pref_extension_provider.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/external_registry_extension_provider_win.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.h View 1 2 2 chunks +109 lines, -97 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.cc View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Aaron Boodman
asargent: Update related bits erikkay: Sorry to do this to you, but you know the ...
11 years, 4 months ago (2009-07-29 03:10:08 UTC) #1
asargent_no_longer_on_chrome
http://codereview.chromium.org/160311/diff/1/2 File chrome/browser/extensions/crx_installer.cc (right): http://codereview.chromium.org/160311/diff/1/2#newcode49 Line 49: crx_deleter_.Set(crx_path_); I don't think this will work, because ...
11 years, 4 months ago (2009-07-29 17:28:19 UTC) #2
Erik does not do reviews
I really like the direction this is heading. Good stuff. http://codereview.chromium.org/160311/diff/1/2 File chrome/browser/extensions/crx_installer.cc (right): http://codereview.chromium.org/160311/diff/1/2#newcode1 ...
11 years, 4 months ago (2009-07-29 18:08:36 UTC) #3
Aaron Boodman
Thanks for the feedback. Erik, I reworked the lifetime strategy. SandboxedExtensionUnpackerClient is now ref-counted, as ...
11 years, 4 months ago (2009-07-29 20:30:01 UTC) #4
asargent_no_longer_on_chrome
LGTM. By the way, I like the removal of the install callbacks; that is a ...
11 years, 4 months ago (2009-07-29 21:33:10 UTC) #5
Erik does not do reviews
11 years, 4 months ago (2009-07-29 21:55:54 UTC) #6
LGTM - new lifetime strategy seems good.  I'm OK waiting for next CL for the
CrxInstaller API changes.

Powered by Google App Engine
This is Rietveld 408576698