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

Issue 2783813002: Move ChromeRequirementsChecker to //extensions as a PreloadCheck (Closed)

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

Description

Move ChromeRequirementsChecker to //extensions as a PreloadCheck Remove the "Chrome" from ChromeRequirementsChecker. Make it implement PreloadCheck and simplify its async logic a bit. Transform RequirementsCheckerBrowserTest to a unit test. This lets AppShell and other modules use RequirementsChecker. (This wasn't possible until GPUFeatureChecker was moved to //content in http://crrev.com/2666243002.) BUG=679971 R=rdevlin.cronin@chromium.org TBR=bauerb@chromium.org Review-Url: https://codereview.chromium.org/2783813002 Cr-Commit-Position: refs/heads/master@{#462607} Committed: https://chromium.googlesource.com/chromium/src/+/a8ea037e3ee7b0f25d694801bd4accb8f22b46c4

Patch Set 1 #

Patch Set 2 : similarity #

Patch Set 3 : . #

Patch Set 4 : minor test cleanup #

Total comments: 16

Patch Set 5 : SKIP: comments, tests #

Total comments: 1

Patch Set 6 : clean up ^ #

Patch Set 7 : scoped_refptr nuances, rebase #

Total comments: 2

Patch Set 8 : rename #

Patch Set 9 : rebase #

Patch Set 10 : force async #

Patch Set 11 : bug # #

Patch Set 12 : rebase? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -726 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/content_settings/content_settings_internal_extension_provider.cc View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/management/chrome_management_api_delegate.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/management/chrome_management_api_delegate.cc View 2 chunks +0 lines, -6 lines 0 comments Download
D chrome/browser/extensions/chrome_requirements_checker.h View 1 chunk +0 lines, -59 lines 0 comments Download
D chrome/browser/extensions/chrome_requirements_checker.cc View 1 chunk +0 lines, -89 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 5 6 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_install_checker.h View 1 2 3 4 6 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_install_checker.cc View 1 2 3 4 5 6 7 chunks +15 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_install_checker_unittest.cc View 1 2 3 4 5 3 chunks +19 lines, -35 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/plugin_manager.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
D chrome/browser/extensions/requirements_checker_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -136 lines 0 comments Download
M chrome/browser/extensions/unpacked_installer.cc View 1 2 3 4 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/common/extensions/api/plugins/plugins_handler.h View 1 2 3 4 1 chunk +0 lines, -53 lines 0 comments Download
D chrome/common/extensions/api/plugins/plugins_handler.cc View 1 2 3 4 1 chunk +0 lines, -145 lines 0 comments Download
M chrome/common/extensions/chrome_manifest_handlers.cc View 1 2 3 4 3 chunks +0 lines, -4 lines 0 comments Download
M chrome/common/extensions/sync_helper.cc View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M chrome/common/extensions/sync_type_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
D chrome/test/data/requirements_checker/no_requirements/manifest.json View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
D chrome/test/data/requirements_checker/require_3d/manifest.json View 1 2 3 1 chunk +0 lines, -10 lines 0 comments Download
D chrome/test/data/requirements_checker/require_npapi/manifest.json View 1 2 3 1 chunk +0 lines, -10 lines 0 comments Download
D chrome/test/data/requirements_checker/require_window_shape/manifest.json View 1 2 3 1 chunk +0 lines, -10 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/management/management_api.h View 2 chunks +2 lines, -1 line 0 comments Download
M extensions/browser/api/management/management_api.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M extensions/browser/api/management/management_api_delegate.h View 2 chunks +0 lines, -5 lines 0 comments Download
M extensions/browser/preload_check.h View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/requirements_checker.h View 1 2 3 4 5 6 7 8 9 2 chunks +34 lines, -16 lines 0 comments Download
A + extensions/browser/requirements_checker.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +58 lines, -48 lines 0 comments Download
A extensions/browser/requirements_checker_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +176 lines, -0 lines 0 comments Download
M extensions/common/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/common_manifest_handlers.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
A + extensions/common/manifest_handlers/plugins_handler.h View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
A + extensions/common/manifest_handlers/plugins_handler.cc View 1 2 3 4 6 chunks +14 lines, -18 lines 0 comments Download
M extensions/strings/extensions_strings.grd View 1 2 3 4 3 chunks +16 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (11 generated)
michaelpg
Devlin, PTAL. piman: for gpu/config in extensions/browser/DEPS.
3 years, 8 months ago (2017-03-29 01:35:26 UTC) #3
piman
lgtm
3 years, 8 months ago (2017-03-29 17:38:36 UTC) #4
michaelpg
https://codereview.chromium.org/2783813002/diff/60001/extensions/browser/requirements_checker_unittest.cc File extensions/browser/requirements_checker_unittest.cc (right): https://codereview.chromium.org/2783813002/diff/60001/extensions/browser/requirements_checker_unittest.cc#newcode81 extensions/browser/requirements_checker_unittest.cc:81: ASSERT_TRUE(requirements_handler_.Parse(extension_.get(), &handler_error)); hmm... so loading/parsing a manifest this way ...
3 years, 8 months ago (2017-03-30 02:36:09 UTC) #5
Devlin
https://codereview.chromium.org/2783813002/diff/60001/chrome/browser/extensions/extension_install_checker.cc File chrome/browser/extensions/extension_install_checker.cc (right): https://codereview.chromium.org/2783813002/diff/60001/chrome/browser/extensions/extension_install_checker.cc#newcode108 chrome/browser/extensions/extension_install_checker.cc:108: base::UTF16ToUTF8(requirements_check_->GetErrorMessage()); This back and forth between conversions is a ...
3 years, 8 months ago (2017-03-30 17:10:55 UTC) #6
michaelpg
Devlin, PTAL. A bit of churn to move plugins_handler, but it'd be hard to land ...
3 years, 8 months ago (2017-03-30 22:49:01 UTC) #7
Devlin
lgtm https://codereview.chromium.org/2783813002/diff/120001/extensions/browser/requirements_checker.cc File extensions/browser/requirements_checker.cc (right): https://codereview.chromium.org/2783813002/diff/120001/extensions/browser/requirements_checker.cc#newcode78 extensions/browser/requirements_checker.cc:78: void RequirementsChecker::OnGetWebGLAvailability(bool available) { OnGot...? OnDetermined...? OnChecked...? Something ...
3 years, 8 months ago (2017-04-04 01:27:43 UTC) #9
michaelpg
https://codereview.chromium.org/2783813002/diff/120001/extensions/browser/requirements_checker.cc File extensions/browser/requirements_checker.cc (right): https://codereview.chromium.org/2783813002/diff/120001/extensions/browser/requirements_checker.cc#newcode78 extensions/browser/requirements_checker.cc:78: void RequirementsChecker::OnGetWebGLAvailability(bool available) { On 2017/04/04 01:27:43, Devlin wrote: ...
3 years, 8 months ago (2017-04-04 21:45:40 UTC) #11
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/2783813002/180001
3 years, 8 months ago (2017-04-04 21:52:56 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/397925)
3 years, 8 months ago (2017-04-04 22:46:01 UTC) #16
michaelpg
Hrmm... failing DisableExtensionsExceptBrowserTest.DisableExtensionsExceptFla g because of an assumption in ExtensionService that extensions are always installed ...
3 years, 8 months ago (2017-04-04 23:46:23 UTC) #17
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/2783813002/240001
3 years, 8 months ago (2017-04-06 18:55:59 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 20:43:07 UTC) #23
Message was sent while issue was closed.
Committed patchset #12 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/a8ea037e3ee7b0f25d694801bd4a...

Powered by Google App Engine
This is Rietveld 408576698