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

Issue 12846011: Implement API features for the Extension API feature system (Closed)

Created:
7 years, 9 months ago by cduvall
Modified:
7 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Implement API features for the Extension API feature system Now features can be declared in the _api_features.json file, and dependencies of the form "api:<api_name>" will refer to these features. This patch also prevents schemas for APIs using the feature system from being loaded when calling ExtensionAPI::IsAvailable(). TBR=ben@chromium.org BUG=55316, 120070, 224206 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190836 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191133

Patch Set 1 #

Total comments: 35

Patch Set 2 : tests and comments #

Total comments: 3

Patch Set 3 : more changes #

Patch Set 4 : fix compile/unit test #

Patch Set 5 : fixed memory leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+396 lines, -307 lines) Patch
M chrome/chrome_common.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/common_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/_api_features.json View 1 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/bookmarks.json View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/extension_api.h View 1 4 chunks +5 lines, -24 lines 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 2 9 chunks +39 lines, -115 lines 0 comments Download
M chrome/common/extensions/api/extension_api_unittest.cc View 1 2 3 4 5 chunks +116 lines, -71 lines 0 comments Download
M chrome/common/extensions/api/webstore.json View 1 chunk +0 lines, -11 lines 0 comments Download
A chrome/common/extensions/features/api_feature.h View 1 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/common/extensions/features/api_feature.cc View 1 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/common/extensions/features/base_feature_provider.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/features/base_feature_provider.cc View 1 5 chunks +16 lines, -15 lines 0 comments Download
M chrome/common/extensions/features/base_feature_provider_unittest.cc View 1 2 3 5 chunks +9 lines, -3 lines 0 comments Download
M chrome/common/extensions/features/feature.h View 1 2 3 4 chunks +3 lines, -1 line 0 comments Download
M chrome/common/extensions/features/feature.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/features/manifest_feature.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/features/manifest_feature.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/common/extensions/features/permission_feature.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/features/permission_feature.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/common/extensions/features/simple_feature.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/features/simple_feature.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
A chrome/test/data/extensions/extension_api_unittest/api_features.json View 1 1 chunk +54 lines, -0 lines 0 comments Download
D chrome/test/data/extensions/extension_api_unittest/is_privileged_features_1.json View 1 1 chunk +0 lines, -8 lines 0 comments Download
D chrome/test/data/extensions/extension_api_unittest/is_privileged_features_2.json View 1 1 chunk +0 lines, -8 lines 0 comments Download
D chrome/test/data/extensions/extension_api_unittest/is_privileged_features_3.json View 1 1 chunk +0 lines, -8 lines 0 comments Download
D chrome/test/data/extensions/extension_api_unittest/is_privileged_features_4.json View 1 1 chunk +0 lines, -18 lines 0 comments Download
D chrome/test/data/extensions/extension_api_unittest/is_privileged_features_5.json View 1 1 chunk +0 lines, -18 lines 0 comments Download
A chrome/test/data/extensions/extension_api_unittest/privileged_api_features.json View 1 2 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
cduvall
7 years, 9 months ago (2013-03-25 23:32:24 UTC) #1
not at google - send to devlin
awesome, basically lg but there are a bunch of comments so might as well go ...
7 years, 9 months ago (2013-03-26 00:34:48 UTC) #2
cduvall
https://codereview.chromium.org/12846011/diff/1/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (right): https://codereview.chromium.org/12846011/diff/1/chrome/common/extensions/api/_api_features.json#newcode15 chrome/common/extensions/api/_api_features.json:15: "contexts": ["blessed_extension"], On 2013/03/26 00:34:48, kalman wrote: > hm, ...
7 years, 9 months ago (2013-03-26 19:24:05 UTC) #3
not at google - send to devlin
lgtm with some more comments, ping it back if that comment about IsPrivileged is too ...
7 years, 9 months ago (2013-03-26 21:31:21 UTC) #4
cduvall
https://codereview.chromium.org/12846011/diff/1/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): https://codereview.chromium.org/12846011/diff/1/chrome/common/extensions/api/extension_api.cc#newcode463 chrome/common/extensions/api/extension_api.cc:463: // in a blessed context. On 2013/03/26 21:31:21, kalman ...
7 years, 9 months ago (2013-03-26 22:08:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/12846011/10006
7 years, 9 months ago (2013-03-26 22:10:38 UTC) #6
commit-bot: I haz the power
Presubmit check for 12846011-10006 failed and returned exit status 1. INFO:root:Found 21 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-26 22:10:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/12846011/10006
7 years, 9 months ago (2013-03-26 22:30:07 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-26 23:01:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/12846011/38001
7 years, 9 months ago (2013-03-26 23:11:59 UTC) #10
commit-bot: I haz the power
Change committed as 190836
7 years, 9 months ago (2013-03-27 06:53:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/12846011/59001
7 years, 9 months ago (2013-03-27 17:33:37 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=128154
7 years, 9 months ago (2013-03-27 20:17:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/12846011/59001
7 years, 9 months ago (2013-03-27 20:22:52 UTC) #14
commit-bot: I haz the power
7 years, 9 months ago (2013-03-28 12:40:27 UTC) #15
Message was sent while issue was closed.
Change committed as 191133

Powered by Google App Engine
This is Rietveld 408576698