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

Issue 10310028: Making webRequest.addEventListener internal (Closed)

Created:
8 years, 7 months ago by vabr (Chromium)
Modified:
8 years, 7 months ago
Reviewers:
Matt Perry, battre
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Making webRequest.addEventListener internal Changes required to hide addEventListener, moving it from webRequest to webRequestInternal. BUG=115467 TEST=loading extensions from the ticket 115467 and observing the behaviour Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=138481

Patch Set 1 : Implicit internal permissions for webRequest #

Total comments: 13

Patch Set 2 : Hiding also eventHandled + other review comments #

Patch Set 3 : Un-documenting the whole webRequestInternal.json #

Patch Set 4 : Fixing ExtensionPermissionsTest.PermissionMessages unit-test for WebRequestInternal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -60 lines) Patch
M chrome/browser/extensions/api/web_request/web_request_api.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/web_request.json View 1 1 chunk +0 lines, -42 lines 0 comments Download
A chrome/common/extensions/api/web_request_internal.json View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions_api_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_resources.grd View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/web_request_custom_bindings.js View 1 4 chunks +4 lines, -16 lines 0 comments Download
A chrome/renderer/resources/extensions/web_request_internal_custom_bindings.js View 1 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
vabr (Chromium)
Hi Dominic, Please take a look. Note: Pre-submit checks failed, complaining that: "This change modifies ...
8 years, 7 months ago (2012-05-14 18:10:34 UTC) #1
battre
Awesome! Congratulations. I have left a couple of comments. It happens to me all the ...
8 years, 7 months ago (2012-05-14 18:44:53 UTC) #2
vabr (Chromium)
Hi Dominic, Are you sure you left comments? I only see the one I made... ...
8 years, 7 months ago (2012-05-14 21:07:51 UTC) #3
battre
http://codereview.chromium.org/10310028/diff/11001/chrome/browser/extensions/api/web_request/web_request_api.h File chrome/browser/extensions/api/web_request/web_request_api.h (right): http://codereview.chromium.org/10310028/diff/11001/chrome/browser/extensions/api/web_request/web_request_api.h#newcode391 chrome/browser/extensions/api/web_request/web_request_api.h:391: DECLARE_EXTENSION_FUNCTION_NAME("webRequest.eventHandled"); I think it would make sense to cover ...
8 years, 7 months ago (2012-05-15 09:23:38 UTC) #4
vabr (Chromium)
Hi Dominic, PTAL. I tried again building the API documentation, with this result: * The ...
8 years, 7 months ago (2012-05-15 11:57:51 UTC) #5
vabr (Chromium)
Hi Dominic, As per personal communication, I corrected the placement of "nodoc" in webRequestInternal.json. Now ...
8 years, 7 months ago (2012-05-16 11:08:18 UTC) #6
battre
LGTM
8 years, 7 months ago (2012-05-16 11:14:03 UTC) #7
vabr (Chromium)
Hi Matt, I have hidden the internal part of the webRequest API from extension code. ...
8 years, 7 months ago (2012-05-16 11:22:42 UTC) #8
Matt Perry
lgtm
8 years, 7 months ago (2012-05-16 23:39:20 UTC) #9
Matt Perry
http://codereview.chromium.org/10310028/diff/11001/chrome/common/extensions/extension_permission_set.cc File chrome/common/extensions/extension_permission_set.cc (right): http://codereview.chromium.org/10310028/diff/11001/chrome/common/extensions/extension_permission_set.cc#newcode882 chrome/common/extensions/extension_permission_set.cc:882: if (apis_.find(ExtensionAPIPermission::kWebRequest) != apis_.end()) On 2012/05/15 11:57:52, vabr (Chromium) ...
8 years, 7 months ago (2012-05-16 23:47:00 UTC) #10
battre
http://codereview.chromium.org/10310028/diff/11001/chrome/common/extensions/extension_permission_set.cc File chrome/common/extensions/extension_permission_set.cc (right): http://codereview.chromium.org/10310028/diff/11001/chrome/common/extensions/extension_permission_set.cc#newcode882 chrome/common/extensions/extension_permission_set.cc:882: if (apis_.find(ExtensionAPIPermission::kWebRequest) != apis_.end()) On 2012/05/16 23:47:00, Matt Perry ...
8 years, 7 months ago (2012-05-17 08:56:19 UTC) #11
Matt Perry
http://codereview.chromium.org/10310028/diff/11001/chrome/common/extensions/extension_permission_set.cc File chrome/common/extensions/extension_permission_set.cc (right): http://codereview.chromium.org/10310028/diff/11001/chrome/common/extensions/extension_permission_set.cc#newcode882 chrome/common/extensions/extension_permission_set.cc:882: if (apis_.find(ExtensionAPIPermission::kWebRequest) != apis_.end()) On 2012/05/17 08:56:19, battre wrote: ...
8 years, 7 months ago (2012-05-17 18:44:45 UTC) #12
vabr (Chromium)
http://codereview.chromium.org/10310028/diff/11001/chrome/common/extensions/extension_permission_set.cc File chrome/common/extensions/extension_permission_set.cc (right): http://codereview.chromium.org/10310028/diff/11001/chrome/common/extensions/extension_permission_set.cc#newcode882 chrome/common/extensions/extension_permission_set.cc:882: if (apis_.find(ExtensionAPIPermission::kWebRequest) != apis_.end()) > It's best if we ...
8 years, 7 months ago (2012-05-17 21:23:37 UTC) #13
vabr (Chromium)
Added one more comment, but did not manage to send a mail when publishing it. ...
8 years, 7 months ago (2012-05-17 21:26:05 UTC) #14
Matt Perry
Yep, LGTM.
8 years, 7 months ago (2012-05-17 21:38:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/10310028/10005
8 years, 7 months ago (2012-05-18 14:35:47 UTC) #16
commit-bot: I haz the power
Try job failure for 10310028-10005 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 7 months ago (2012-05-18 15:14:07 UTC) #17
vabr (Chromium)
On 2012/05/18 15:14:07, I haz the power (commit-bot) wrote: > Try job failure for 10310028-10005 ...
8 years, 7 months ago (2012-05-18 17:44:35 UTC) #18
vabr (Chromium)
Hi Dominic and Matt, The ExtensionPermissionsTest.PermissionMessages unit-test needed to be fixed -- WebRequestInternal does not ...
8 years, 7 months ago (2012-05-21 08:10:02 UTC) #19
battre
lgtm
8 years, 7 months ago (2012-05-21 08:33:14 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/10310028/24001
8 years, 7 months ago (2012-05-22 18:43:23 UTC) #21
commit-bot: I haz the power
Try job failure for 10310028-24001 (retry) (retry) (previous was lost) on win_rel for step "sync_unit_tests". ...
8 years, 7 months ago (2012-05-23 02:12:42 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/10310028/24001
8 years, 7 months ago (2012-05-23 06:01:15 UTC) #23
commit-bot: I haz the power
Try job failure for 10310028-24001 (retry) (retry) on win_rel for step "sync_unit_tests". It's a second ...
8 years, 7 months ago (2012-05-23 12:55:15 UTC) #24
vabr (Chromium)
On 2012/05/23 12:55:15, I haz the power (commit-bot) wrote: > Try job failure for 10310028-24001 ...
8 years, 7 months ago (2012-05-23 13:56:47 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/10310028/24001
8 years, 7 months ago (2012-05-23 13:57:12 UTC) #26
commit-bot: I haz the power
8 years, 7 months ago (2012-05-23 15:50:33 UTC) #27
Change committed as 138481

Powered by Google App Engine
This is Rietveld 408576698