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

Issue 2783143005: Replace ExtensionInstallChecker with generic PreloadCheckGroup (Closed)

Created:
3 years, 8 months ago by michaelpg
Modified:
3 years, 8 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, rkc
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace ExtensionInstallChecker with generic PreloadCheckGroup Use the PreloadCheck interface for a PreloadCheckGroup check that runs a set of checks in parallel. Use this directly in CrxInstaller and UnpackedInstaller; remove ExtensionInstallChecker, along with its mildly arcane interface and its smattering of tests (the individual checks and the Installers are already tested individually). This generic "group" check can be provided with Chrome-specific checks, but doesn't have to depend on Chrome itself, so it could be used in non-Chrome code, e.g. //apps and //extensions. BUG=679971 R=rdevlin.cronin@chromium.org Review-Url: https://codereview.chromium.org/2783143005 Cr-Commit-Position: refs/heads/master@{#464533} Committed: https://chromium.googlesource.com/chromium/src/+/6a4874fd53dccf53b7e5dc6f31275245dd4573bc

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 6

Patch Set 3 : feedback #

Patch Set 4 : (no change) #

Total comments: 7

Patch Set 5 : feedback/rebase #

Patch Set 6 : fix tests #

Patch Set 7 : . #

Patch Set 8 : fix debug build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -707 lines) Patch
M chrome/browser/extensions/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/crx_installer.h View 1 4 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 chunks +52 lines, -37 lines 0 comments Download
D chrome/browser/extensions/extension_install_checker.h View 1 chunk +0 lines, -135 lines 0 comments Download
D chrome/browser/extensions/extension_install_checker.cc View 1 chunk +0 lines, -164 lines 0 comments Download
D chrome/browser/extensions/extension_install_checker_unittest.cc View 1 chunk +0 lines, -309 lines 0 comments Download
M chrome/browser/extensions/unpacked_installer.h View 1 4 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/extensions/unpacked_installer.cc View 3 chunks +24 lines, -16 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M extensions/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A extensions/browser/preload_check_group.h View 1 chunk +60 lines, -0 lines 0 comments Download
A extensions/browser/preload_check_group.cc View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A extensions/browser/preload_check_group_unittest.cc View 1 2 3 4 5 6 7 1 chunk +145 lines, -0 lines 0 comments Download
M extensions/browser/preload_check_test_util.h View 1 2 3 4 2 chunks +5 lines, -9 lines 0 comments Download
M extensions/browser/preload_check_test_util.cc View 1 2 3 4 5 6 4 chunks +20 lines, -22 lines 0 comments Download
M extensions/browser/requirements_checker_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 34 (18 generated)
michaelpg
PTAL!
3 years, 8 months ago (2017-03-31 21:30:25 UTC) #3
Devlin
Nice little cleanup! https://codereview.chromium.org/2783143005/diff/20001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://codereview.chromium.org/2783143005/diff/20001/chrome/browser/extensions/crx_installer.cc#newcode539 chrome/browser/extensions/crx_installer.cc:539: if (!errors.empty()) { this block hurts ...
3 years, 8 months ago (2017-04-04 01:37:26 UTC) #4
michaelpg
PTAL. only the .cc files changed, the rest was a rebase. https://codereview.chromium.org/2783143005/diff/20001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): ...
3 years, 8 months ago (2017-04-04 21:41:29 UTC) #5
Devlin
lgtm https://codereview.chromium.org/2783143005/diff/60001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://codereview.chromium.org/2783143005/diff/60001/chrome/browser/extensions/crx_installer.cc#newcode545 chrome/browser/extensions/crx_installer.cc:545: if (!requirements_check_->GetErrorMessage().empty()) { I know I mentioned before ...
3 years, 8 months ago (2017-04-06 02:03:53 UTC) #6
michaelpg
Devlin, PTAL at these changes and let me know if it's still good. Thanks! https://codereview.chromium.org/2783143005/diff/60001/chrome/browser/extensions/crx_installer.cc ...
3 years, 8 months ago (2017-04-06 22:31:17 UTC) #8
michaelpg
piman: PTAL for extension/browser/DEPS include rule for gpu/config.
3 years, 8 months ago (2017-04-06 22:33:28 UTC) #11
piman
On 2017/04/06 22:33:28, michaelpg wrote: > piman: PTAL for extension/browser/DEPS include rule for gpu/config. I ...
3 years, 8 months ago (2017-04-06 22:57:17 UTC) #12
michaelpg
On 2017/04/06 22:57:17, piman wrote: > On 2017/04/06 22:33:28, michaelpg wrote: > > piman: PTAL ...
3 years, 8 months ago (2017-04-06 23:33:00 UTC) #13
Devlin
s lgtm; errors vs GetErrorMessage() can be resolved async and in followups. https://codereview.chromium.org/2783143005/diff/60001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc ...
3 years, 8 months ago (2017-04-07 14:33:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2783143005/100001
3 years, 8 months ago (2017-04-07 22:34:15 UTC) #18
michaelpg
On 2017/04/07 14:33:57, Devlin wrote: > s lgtm; errors vs GetErrorMessage() can be resolved async ...
3 years, 8 months ago (2017-04-07 22:47:26 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/272395)
3 years, 8 months ago (2017-04-07 23:05:36 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2783143005/140001
3 years, 8 months ago (2017-04-12 04:47:10 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/274708)
3 years, 8 months ago (2017-04-12 05:23:19 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2783143005/160001
3 years, 8 months ago (2017-04-13 19:39:35 UTC) #31
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 20:42:46 UTC) #34
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/6a4874fd53dccf53b7e5dc6f3127...

Powered by Google App Engine
This is Rietveld 408576698