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

Issue 10025007: Convert tabs, windows, and extension APIs to feature system. (Closed)

Created:
8 years, 8 months ago by Aaron Boodman
Modified:
8 years, 8 months ago
CC:
chromium-reviews, pam+watch_chromium.org, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Convert tabs, windows, and extension APIs to feature system. BUG=120069

Patch Set 1 #

Total comments: 3

Patch Set 2 : minor cleanup #

Patch Set 3 : Remove obsolete special cases from ExtensionPermissionSet #

Total comments: 22

Patch Set 4 : rebase #

Patch Set 5 : comments #

Patch Set 6 : no comment left behind #

Total comments: 1

Patch Set 7 : blah #

Unified diffs Side-by-side diffs Delta from patch set Stats (+670 lines, -322 lines) Patch
M chrome/browser/extensions/extension_event_router.h View 5 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_event_router.cc View 3 chunks +57 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 4 chunks +23 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 2 chunks +19 lines, -6 lines 0 comments Download
M chrome/chrome_common.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/bookmarks.json View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/api/extension.json View 19 chunks +13 lines, -10 lines 0 comments Download
M chrome/common/extensions/api/extension_api.h View 1 2 3 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 2 3 4 12 chunks +49 lines, -62 lines 0 comments Download
A chrome/common/extensions/api/extension_api_feature.h View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/extension_api_feature.cc View 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/extension_api_feature_unittest.cc View 1 chunk +67 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api_unittest.cc View 1 2 3 4 3 chunks +13 lines, -73 lines 0 comments Download
M chrome/common/extensions/api/tabs.json View 1 2 3 4 5 6 29 chunks +56 lines, -1 line 0 comments Download
M chrome/common/extensions/api/windows.json View 11 chunks +26 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_messages.h View 3 chunks +9 lines, -4 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.cc View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/common/extensions/extension_permission_set_unittest.cc View 1 2 4 chunks +0 lines, -8 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/common/extensions/feature.h View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M chrome/common/extensions/feature.cc View 1 2 3 4 8 chunks +24 lines, -9 lines 0 comments Download
M chrome/common/extensions/feature_unittest.cc View 1 2 3 4 3 chunks +34 lines, -0 lines 0 comments Download
M chrome/common/extensions/permission_feature.cc View 1 2 3 4 5 6 1 chunk +14 lines, -1 line 0 comments Download
M chrome/renderer/extensions/api_definitions_natives.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/api_definitions_natives.cc View 1 2 3 4 5 6 3 chunks +28 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_extension.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_extension.cc View 3 chunks +0 lines, -21 lines 0 comments Download
M chrome/renderer/extensions/event_bindings.cc View 1 2 3 4 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/renderer/extensions/extension_custom_bindings.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/extension_custom_bindings.cc View 1 2 3 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 1 chunk +0 lines, -32 lines 0 comments Download
M chrome/renderer/extensions/extension_request_sender.cc View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M chrome/renderer/resources/extensions/schema_generated_bindings.js View 1 2 3 4 5 6 2 chunks +11 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/api_test/content_scripts/extension_iframe/iframe.js View 1 2 3 4 5 6 2 chunks +13 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/api_test/events/background.js View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/permissions/optional/background.js View 1 2 3 4 5 6 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/stubs/content_script.js View 2 chunks +5 lines, -1 line 0 comments Download
A chrome/test/data/extensions/extension_api_feature_unittest/test1.json View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/compiler.py View 1 chunk +10 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Aaron Boodman
mpcomplete: chrome/browser/... koz: chrome/renderer/... kalman: chrome/common/... https://chromiumcodereview.appspot.com/10025007/diff/1/chrome/common/extensions/api/extension_api_unittest.cc File chrome/common/extensions/api/extension_api_unittest.cc (left): https://chromiumcodereview.appspot.com/10025007/diff/1/chrome/common/extensions/api/extension_api_unittest.cc#oldcode353 chrome/common/extensions/api/extension_api_unittest.cc:353: TEST(ExtensionAPI, DefaultConfigurationFeatures) { ...
8 years, 8 months ago (2012-04-07 07:49:11 UTC) #1
Aaron Boodman
Matt: One note. extension_messages_browsertest.cc breaks with this because chrome.extension.connect() is called from an non-extension context ...
8 years, 8 months ago (2012-04-07 07:50:59 UTC) #2
Matt Perry
As for the messaging test, I think we can kill it. It's covered by API ...
8 years, 8 months ago (2012-04-09 20:55:54 UTC) #3
not at google - send to devlin
I started looking at this and got 1 diff in, but I need to jump ...
8 years, 8 months ago (2012-04-10 02:04:27 UTC) #4
jameskozianski
chrome/renderer/... lgtm https://chromiumcodereview.appspot.com/10025007/diff/6001/chrome/renderer/extensions/api_definitions_natives.h File chrome/renderer/extensions/api_definitions_natives.h (right): https://chromiumcodereview.appspot.com/10025007/diff/6001/chrome/renderer/extensions/api_definitions_natives.h#newcode26 chrome/renderer/extensions/api_definitions_natives.h:26: // bool IsMemberAllowed(string namespace, object memberSchema) The ...
8 years, 8 months ago (2012-04-10 20:46:45 UTC) #5
not at google - send to devlin
lgtm http://codereview.chromium.org/10025007/diff/6001/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): http://codereview.chromium.org/10025007/diff/6001/chrome/common/extensions/api/extension_api.cc#newcode400 chrome/common/extensions/api/extension_api.cc:400: bool ExtensionAPI::IsPrivileged(const std::string& full_name) { Urk, it seems ...
8 years, 8 months ago (2012-04-10 23:55:40 UTC) #6
Aaron Boodman
https://chromiumcodereview.appspot.com/10025007/diff/6001/chrome/browser/extensions/extension_event_router.cc File chrome/browser/extensions/extension_event_router.cc (right): https://chromiumcodereview.appspot.com/10025007/diff/6001/chrome/browser/extensions/extension_event_router.cc#newcode140 chrome/browser/extensions/extension_event_router.cc:140: static_cast<Feature::Context>(context_type))) { On 2012/04/09 20:55:54, Matt Perry wrote: > ...
8 years, 8 months ago (2012-04-11 21:51:53 UTC) #7
Matt Perry
8 years, 8 months ago (2012-04-11 22:19:42 UTC) #8
lgtm

https://chromiumcodereview.appspot.com/10025007/diff/17002/chrome/browser/ext...
File chrome/browser/extensions/extension_function_dispatcher.cc (right):

https://chromiumcodereview.appspot.com/10025007/diff/17002/chrome/browser/ext...
chrome/browser/extensions/extension_function_dispatcher.cc:283: LOG(ERROR) <<
"Access to extension API '" << params.name << "' denied.";
Why is the LOG message different from the older code?

Powered by Google App Engine
This is Rietveld 408576698