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

Issue 11316164: Implement ComplexFeature to support permission features with multiple rules. (Closed)

Created:
8 years ago by justinlin
Modified:
8 years ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Implement ComplexFeature to support permission features with multiple rules. This moves the existing Feature class functionality into SimpleFeature and makes Feature an abstract class. ComplexFeature implements Feature and returns the availability of the Features that compose it. Also move SimpleFeatureProvider to BaseFeatureProvider since they can return either Simple or Complex features now. BUG=159181 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173320

Patch Set 1 #

Patch Set 2 : new #

Total comments: 67

Patch Set 3 : Review comments, cleanup #

Total comments: 22

Patch Set 4 : comments #

Total comments: 2

Patch Set 5 : Renames and add TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+791 lines, -1412 lines) Patch
M chrome/chrome_common.gypi View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 2 3 4 6 chunks +9 lines, -8 lines 0 comments Download
M chrome/common/extensions/api/extension_api_unittest.cc View 1 2 3 4 chunks +11 lines, -8 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/common/extensions/features/base_feature_provider.h View 1 2 3 4 2 chunks +12 lines, -11 lines 0 comments Download
A chrome/common/extensions/features/base_feature_provider.cc View 1 2 3 4 1 chunk +166 lines, -0 lines 0 comments Download
A + chrome/common/extensions/features/base_feature_provider_unittest.cc View 1 2 3 4 5 chunks +80 lines, -20 lines 0 comments Download
A chrome/common/extensions/features/complex_feature.h View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/common/extensions/features/complex_feature.cc View 1 2 3 1 chunk +77 lines, -0 lines 0 comments Download
A chrome/common/extensions/features/complex_feature_unittest.cc View 1 2 1 chunk +142 lines, -0 lines 0 comments Download
M chrome/common/extensions/features/feature.h View 1 2 3 4 5 chunks +12 lines, -57 lines 0 comments Download
M chrome/common/extensions/features/feature.cc View 1 2 3 3 chunks +1 line, -342 lines 0 comments Download
M chrome/common/extensions/features/feature_unittest.cc View 1 1 chunk +0 lines, -523 lines 0 comments Download
M chrome/common/extensions/features/manifest_feature.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/features/manifest_feature.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/features/permission_feature.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/features/permission_feature.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/common/extensions/features/simple_feature.h View 1 2 3 1 chunk +98 lines, -0 lines 0 comments Download
A + chrome/common/extensions/features/simple_feature.cc View 1 2 3 10 chunks +28 lines, -59 lines 0 comments Download
M chrome/common/extensions/features/simple_feature_provider.h View 1 2 3 4 1 chunk +0 lines, -51 lines 0 comments Download
M chrome/common/extensions/features/simple_feature_provider.cc View 1 2 3 4 1 chunk +0 lines, -124 lines 0 comments Download
M chrome/common/extensions/features/simple_feature_provider_unittest.cc View 1 2 3 4 1 chunk +0 lines, -124 lines 0 comments Download
A + chrome/common/extensions/features/simple_feature_unittest.cc View 1 2 3 18 chunks +70 lines, -61 lines 0 comments Download
M chrome/common/extensions/manifest.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_background_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/manifest_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
justinlin
Hi Aaron, PTAL. Tried to preserve the existing functionality while extending to allow multiple rules, ...
8 years ago (2012-11-26 12:33:14 UTC) #1
justinlin
On 2012/11/26 12:33:14, justinlin wrote: > Hi Aaron, PTAL. Tried to preserve the existing functionality ...
8 years ago (2012-11-28 00:58:56 UTC) #2
not at google - send to devlin
On 2012/11/28 00:58:56, justinlin wrote: > On 2012/11/26 12:33:14, justinlin wrote: > > Hi Aaron, ...
8 years ago (2012-11-28 01:02:58 UTC) #3
justinlin
On 2012/11/28 01:02:58, kalman wrote: > On 2012/11/28 00:58:56, justinlin wrote: > > On 2012/11/26 ...
8 years ago (2012-11-28 01:05:14 UTC) #4
not at google - send to devlin
I chatted with Aaron, and I'll take this. I think the approach we want is ...
8 years ago (2012-11-30 00:48:57 UTC) #5
not at google - send to devlin
Oh no, I meant that I'll take the review :)
8 years ago (2012-11-30 01:07:55 UTC) #6
justinlin
On 2012/11/30 01:07:55, kalman wrote: > Oh no, I meant that I'll take the review ...
8 years ago (2012-12-12 11:07:01 UTC) #7
not at google - send to devlin
sweet change https://codereview.chromium.org/11316164/diff/14001/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): https://codereview.chromium.org/11316164/diff/14001/chrome/common/extensions/api/extension_api.cc#newcode289 chrome/common/extensions/api/extension_api.cc:289: SimpleFeature* feature = new SimpleFeature(); s/SimpleFeature/Feature/ in ...
8 years ago (2012-12-12 17:42:41 UTC) #8
justinlin
Hey kalman@, thanks for the review! Addressed most of the small comments. Some high level ...
8 years ago (2012-12-14 12:26:26 UTC) #9
not at google - send to devlin
almost there! https://codereview.chromium.org/11316164/diff/14001/chrome/common/extensions/features/complex_feature_provider.cc File chrome/common/extensions/features/complex_feature_provider.cc (right): https://codereview.chromium.org/11316164/diff/14001/chrome/common/extensions/features/complex_feature_provider.cc#newcode65 chrome/common/extensions/features/complex_feature_provider.cc:65: continue; On 2012/12/14 12:26:26, justinlin wrote: > ...
8 years ago (2012-12-14 19:10:42 UTC) #10
justinlin
thanks, ptal. I tried to do the manifest/permissionFeatures change to use composition, but it gets ...
8 years ago (2012-12-14 21:07:52 UTC) #11
not at google - send to devlin
lgtm, just need to rename simple_feature_provider https://codereview.chromium.org/11316164/diff/31001/chrome/common/extensions/features/feature.h File chrome/common/extensions/features/feature.h (right): https://codereview.chromium.org/11316164/diff/31001/chrome/common/extensions/features/feature.h#newcode125 chrome/common/extensions/features/feature.h:125: virtual std::set<Context>* GetContexts() ...
8 years ago (2012-12-14 21:30:43 UTC) #12
not at google - send to devlin
lgtm, just need to rename simple_feature_provider https://codereview.chromium.org/11316164/diff/31001/chrome/common/extensions/features/feature.h File chrome/common/extensions/features/feature.h (right): https://codereview.chromium.org/11316164/diff/31001/chrome/common/extensions/features/feature.h#newcode125 chrome/common/extensions/features/feature.h:125: virtual std::set<Context>* GetContexts() ...
8 years ago (2012-12-14 21:30:43 UTC) #13
justinlin
Done the rename SimpleFeatureProvider -> BaseFeatureProvider. sky@: Could I get your owner stamp for the ...
8 years ago (2012-12-14 21:56:06 UTC) #14
Lei Zhang
lgtm for the gypi changes.
8 years ago (2012-12-14 22:53:44 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/justinlin@chromium.org/11316164/34001
8 years ago (2012-12-14 23:18:27 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-15 03:45:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/justinlin@chromium.org/11316164/34001
8 years ago (2012-12-15 03:50:55 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-15 09:30:08 UTC) #19
commit-bot: I haz the power
8 years ago (2012-12-15 20:03:25 UTC) #20

Powered by Google App Engine
This is Rietveld 408576698