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

Issue 2768723002: Update ExtensionInstallChecker to use PreloadCheck classes (Closed)

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

Description

Update ExtensionInstallChecker to use PreloadCheck classes Replaces some ad-hoc checks with their encapsulated equivalents. Later, the individual OnFooCheckDone methods will be eliminated too. BUG=679971 R=rdevlin.cronin@chromium.org Review-Url: https://codereview.chromium.org/2768723002 Cr-Commit-Position: refs/heads/master@{#459621} Committed: https://chromium.googlesource.com/chromium/src/+/2eb513ed005d6b23489f457d997d944b6fa089d8

Patch Set 1 #

Patch Set 2 : newline #

Total comments: 24

Patch Set 3 : devlin #

Total comments: 1

Patch Set 4 : Blacklist comment #

Total comments: 8

Patch Set 5 : devlin nits #

Patch Set 6 : oops #

Patch Set 7 : remove redundant DCHECKs that fail in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -159 lines) Patch
M chrome/browser/extensions/crx_installer.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_install_checker.h View 1 2 3 4 2 chunks +20 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_install_checker.cc View 1 2 3 4 5 6 5 chunks +38 lines, -28 lines 0 comments Download
M chrome/browser/extensions/extension_install_checker_unittest.cc View 1 2 3 4 14 chunks +73 lines, -110 lines 0 comments Download
M extensions/browser/preload_check_test_util.h View 1 2 3 4 2 chunks +31 lines, -0 lines 0 comments Download
M extensions/browser/preload_check_test_util.cc View 1 2 2 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
michaelpg
Hopefully a more straightforward follow-up for you.
3 years, 9 months ago (2017-03-22 00:40:36 UTC) #1
Devlin
https://codereview.chromium.org/2768723002/diff/20001/chrome/browser/extensions/extension_install_checker.cc File chrome/browser/extensions/extension_install_checker.cc (right): https://codereview.chromium.org/2768723002/diff/20001/chrome/browser/extensions/extension_install_checker.cc#newcode75 chrome/browser/extensions/extension_install_checker.cc:75: if (!policy_check_) As a single use class, when would ...
3 years, 9 months ago (2017-03-22 15:08:46 UTC) #2
michaelpg
Thanks. PTAL. https://codereview.chromium.org/2768723002/diff/20001/chrome/browser/extensions/extension_install_checker.cc File chrome/browser/extensions/extension_install_checker.cc (right): https://codereview.chromium.org/2768723002/diff/20001/chrome/browser/extensions/extension_install_checker.cc#newcode75 chrome/browser/extensions/extension_install_checker.cc:75: if (!policy_check_) On 2017/03/22 15:08:46, Devlin wrote: ...
3 years, 9 months ago (2017-03-24 02:34:17 UTC) #3
Devlin
LGTM % nits https://codereview.chromium.org/2768723002/diff/60001/chrome/browser/extensions/extension_install_checker.cc File chrome/browser/extensions/extension_install_checker.cc (right): https://codereview.chromium.org/2768723002/diff/60001/chrome/browser/extensions/extension_install_checker.cc#newcode86 chrome/browser/extensions/extension_install_checker.cc:86: if (errors.count(PreloadCheck::DISALLOWED_BY_POLICY)) would just `if (!errors.empty())` ...
3 years, 9 months ago (2017-03-24 16:21:49 UTC) #4
michaelpg
thanks! https://codereview.chromium.org/2768723002/diff/60001/chrome/browser/extensions/extension_install_checker.cc File chrome/browser/extensions/extension_install_checker.cc (right): https://codereview.chromium.org/2768723002/diff/60001/chrome/browser/extensions/extension_install_checker.cc#newcode86 chrome/browser/extensions/extension_install_checker.cc:86: if (errors.count(PreloadCheck::DISALLOWED_BY_POLICY)) On 2017/03/24 16:21:48, Devlin wrote: > ...
3 years, 9 months ago (2017-03-24 21:48:28 UTC) #5
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/2768723002/100001
3 years, 9 months ago (2017-03-24 23:25:38 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/414752)
3 years, 9 months ago (2017-03-24 23:51:14 UTC) #10
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/2768723002/120001
3 years, 9 months ago (2017-03-25 01:21:57 UTC) #13
commit-bot: I haz the power
3 years, 9 months ago (2017-03-25 02:03:58 UTC) #16
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/2eb513ed005d6b23489f457d997d...

Powered by Google App Engine
This is Rietveld 408576698