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

Issue 2133783002: [Extensions] Break up BaseFeatureProvider, create JSONFeatureProvider (Closed)

Created:
4 years, 5 months ago by Devlin
Modified:
4 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Break up BaseFeatureProvider, create JSONFeatureProvider BaseFeatureProvider is currently the only implementation of FeatureProvider (despite its name implying there should be more). As we move to generated code for Features, pulling the code to vend features away from the code to populate from a JSON file is necessary. Pull the parsing/population code out of BaseFeatureProvider into a JSONFeatureProvider class, inheriting from BaseFeatureProvider (which maintains the code for returning features). Generated FeatureProviders will also inherit from BaseFeatureProvider. BUG=280286 Committed: https://crrev.com/b649a668b8a7df5326ba493cd1c9baf0c3674075 Cr-Commit-Position: refs/heads/master@{#405162}

Patch Set 1 : update #

Total comments: 2

Patch Set 2 : Antony's #

Patch Set 3 : Latest master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -236 lines) Patch
M chrome/common/extensions/api/common_extension_api_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/extensions/chrome_extensions_client.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/common/extensions/features/chrome_channel_feature_filter_unittest.cc View 5 chunks +8 lines, -8 lines 0 comments Download
M extensions/common/features/base_feature_provider.h View 1 2 chunks +15 lines, -18 lines 0 comments Download
M extensions/common/features/base_feature_provider.cc View 1 2 1 chunk +3 lines, -137 lines 0 comments Download
A extensions/common/features/json_feature_provider.h View 1 chunk +36 lines, -0 lines 0 comments Download
A + extensions/common/features/json_feature_provider.cc View 1 2 6 chunks +7 lines, -54 lines 0 comments Download
M extensions/extensions.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/shell/common/shell_extensions_client.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M extensions/test/test_extensions_client.cc View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
Devlin
Necessary step for feature generation (see description/doc). Figured it was nicer to pull out some ...
4 years, 5 months ago (2016-07-08 20:39:57 UTC) #3
asargent_no_longer_on_chrome
lgtm https://codereview.chromium.org/2133783002/diff/20001/extensions/common/features/base_feature_provider.h File extensions/common/features/base_feature_provider.h (right): https://codereview.chromium.org/2133783002/diff/20001/extensions/common/features/base_feature_provider.h#newcode19 extensions/common/features/base_feature_provider.h:19: class BaseFeatureProvider : public FeatureProvider { nit: this ...
4 years, 5 months ago (2016-07-11 22:39:20 UTC) #4
Devlin
https://codereview.chromium.org/2133783002/diff/20001/extensions/common/features/base_feature_provider.h File extensions/common/features/base_feature_provider.h (right): https://codereview.chromium.org/2133783002/diff/20001/extensions/common/features/base_feature_provider.h#newcode19 extensions/common/features/base_feature_provider.h:19: class BaseFeatureProvider : public FeatureProvider { On 2016/07/11 22:39:20, ...
4 years, 5 months ago (2016-07-12 00:45:29 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/2133783002/60001
4 years, 5 months ago (2016-07-12 00:46:49 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/190655)
4 years, 5 months ago (2016-07-12 02:03:52 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/2133783002/60001
4 years, 5 months ago (2016-07-12 04:39:37 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191031)
4 years, 5 months ago (2016-07-12 08:43:15 UTC) #14
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/2133783002/60001
4 years, 5 months ago (2016-07-12 14:49:27 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191323)
4 years, 5 months ago (2016-07-12 18:57:10 UTC) #18
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/2133783002/60001
4 years, 5 months ago (2016-07-12 19:03:32 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191648)
4 years, 5 months ago (2016-07-13 01:08:03 UTC) #22
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/2133783002/60001
4 years, 5 months ago (2016-07-13 15:02:02 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 5 months ago (2016-07-13 15:36:19 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 15:38:24 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b649a668b8a7df5326ba493cd1c9baf0c3674075
Cr-Commit-Position: refs/heads/master@{#405162}

Powered by Google App Engine
This is Rietveld 408576698