DescriptionSimplify ExtensionInstallChecker into a single-use class
ExtensionInstallChecker does asynchronous checks, and its set of checks
can be started more than once. This functionality isn't being used and
makes the class more complicated. Remove
ExtensionInstallChecker::ResetResults().
It's also unclear why the users of this class (CrxInstaller and
UnpackedInstaller) are intentionally storing their Profile and Extension
pointers in ExtensionInstallChecker class instead of remembering them
locally, so update that and remove
ExtensionInstallChecker::set_extension().
Lastly, allocate the ExtensionInstallChecker dynamically since we don't
always use it.
BUG=none
R=rdevlin.cronin@chromium.org
Review-Url: https://codereview.chromium.org/2751013002
Cr-Commit-Position: refs/heads/master@{#458883}
Committed: https://chromium.googlesource.com/chromium/src/+/b24adc5bcbfde7fd67c6b23c3b0721610c77f63b
Patch Set 1 #
Total comments: 18
Patch Set 2 : devlin #
Total comments: 2
Patch Set 3 : rebase #Patch Set 4 : rebase on enable_extensions=0 fix #
Total comments: 16
Patch Set 5 : devlin nits #Patch Set 6 : missed one #Patch Set 7 : todo #Messages
Total messages: 23 (13 generated)
|