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

Issue 51433002: Enable permission warnings from ManifestHandlers. (Closed)

Created:
7 years, 1 month ago by rpaquay
Modified:
7 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Enable permission warnings from ManifestHandlers. BUG=293755, 247857 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235332

Patch Set 1 #

Patch Set 2 : Working on adding ManifestPermissionSet to PermissionSet. #

Total comments: 6

Patch Set 3 : All features implemented, only code cleanup and tests needed. #

Patch Set 4 : Rebasing. #

Total comments: 30

Patch Set 5 : Address code review comments. #

Total comments: 4

Patch Set 6 : Address code review feedback. #

Total comments: 3

Patch Set 7 : Rebase and address code review feedback. #

Patch Set 8 : Fix clang compilation error. #

Patch Set 9 : Fix another clang compilation error. #

Patch Set 10 : Fix more gcc/clang build errors. #

Patch Set 11 : Fix unit test and clang presubmit errors. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2099 lines, -629 lines) Patch
M chrome/browser/extensions/active_tab_permission_granter.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/permissions/permissions_api_helpers.cc View 1 2 3 4 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/permissions/permissions_api_helpers_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/permissions/permissions_apitest.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/sockets_tcp_server/sockets_tcp_server_api.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/sockets_udp/sockets_udp_api.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 7 8 9 3 chunks +49 lines, -22 lines 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 1 2 3 7 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/extensions/permissions_updater.cc View 1 2 3 4 5 6 1 chunk +10 lines, -7 lines 0 comments Download
M chrome/browser/extensions/permissions_updater_unittest.cc View 1 2 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/themes/theme_syncable_service_unittest.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/sockets/sockets_handler.h View 1 2 3 4 5 1 chunk +0 lines, -68 lines 0 comments Download
M chrome/common/extensions/api/sockets/sockets_handler.cc View 1 2 3 4 5 1 chunk +0 lines, -155 lines 0 comments Download
A chrome/common/extensions/api/sockets/sockets_manifest_data.h View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/sockets/sockets_manifest_data.cc View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/sockets/sockets_manifest_handler.h View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/sockets/sockets_manifest_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/sockets/sockets_manifest_permission.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +100 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/sockets/sockets_manifest_permission.cc View 1 2 3 4 5 6 7 8 9 1 chunk +386 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/sockets/sockets_manifest_permission_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +186 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_manifest_handlers.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 4 chunks +21 lines, -6 lines 0 comments Download
M chrome/common/extensions/extension_messages.cc View 1 2 3 4 4 chunks +43 lines, -2 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_provider.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_provider.cc View 1 2 3 4 5 6 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 26 chunks +68 lines, -36 lines 0 comments Download
M chrome/common/extensions/permissions/permissions_data.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permissions_data.cc View 1 2 3 4 5 6 4 chunks +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permissions_data_unittest.cc View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.h View 1 2 3 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 6 2 chunks +14 lines, -7 lines 0 comments Download
M extensions/DEPS View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/common/extensions_client.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/manifest_handler.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +35 lines, -0 lines 0 comments Download
M extensions/common/manifest_handler.cc View 1 2 3 4 5 4 chunks +44 lines, -0 lines 0 comments Download
M extensions/common/permissions/api_permission_set.h View 1 2 3 4 4 chunks +10 lines, -118 lines 0 comments Download
M extensions/common/permissions/api_permission_set.cc View 1 2 3 4 3 chunks +3 lines, -171 lines 0 comments Download
A extensions/common/permissions/base_set_operators.h View 1 2 3 4 5 6 7 8 9 1 chunk +288 lines, -0 lines 0 comments Download
A extensions/common/permissions/manifest_permission.h View 1 2 3 4 5 1 chunk +88 lines, -0 lines 0 comments Download
A + extensions/common/permissions/manifest_permission.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
A extensions/common/permissions/manifest_permission_set.h View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
A extensions/common/permissions/manifest_permission_set.cc View 1 2 3 4 1 chunk +93 lines, -0 lines 0 comments Download
A extensions/common/permissions/manifest_permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +272 lines, -0 lines 0 comments Download
M extensions/common/permissions/permission_set.h View 1 2 3 4 4 chunks +14 lines, -3 lines 0 comments Download
M extensions/common/permissions/permission_set.cc View 1 8 chunks +26 lines, -4 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
rpaquay
yoz@: This is WIP for addressing permissions messages from manifest handlers. What do you think? ...
7 years, 1 month ago (2013-10-29 21:05:50 UTC) #1
Yoyo Zhou
On 2013/10/29 21:05:50, rpaquay wrote: > yoz@: This is WIP for addressing permissions messages from ...
7 years, 1 month ago (2013-10-29 21:12:46 UTC) #2
rpaquay
> > A next step is to figure out the extensionprefs for diff'ing permissions when ...
7 years, 1 month ago (2013-10-29 22:01:10 UTC) #3
Yoyo Zhou
On 2013/10/29 22:01:10, rpaquay wrote: > > > A next step is to figure out ...
7 years, 1 month ago (2013-10-30 01:01:01 UTC) #4
rpaquay
PTAL. It is still work in progress, but the CL is getting big, and I ...
7 years, 1 month ago (2013-11-05 21:50:25 UTC) #5
Yoyo Zhou
I think this looks mostly sane. I would also want to see the changes to ...
7 years, 1 month ago (2013-11-06 04:02:36 UTC) #6
rpaquay
Thanks for the review, I will keep moving in that direction then. https://codereview.chromium.org/51433002/diff/100001/chrome/common/extensions/api/sockets/sockets_handler.cc File chrome/common/extensions/api/sockets/sockets_handler.cc ...
7 years, 1 month ago (2013-11-06 16:16:16 UTC) #7
rpaquay
PTAL. I think I am done from a functionality point of view. I need to ...
7 years, 1 month ago (2013-11-07 19:33:45 UTC) #8
rpaquay
(Patch set #4 rebased with move of manifest_handler to /extensions/common)
7 years, 1 month ago (2013-11-07 23:55:07 UTC) #9
Yoyo Zhou
https://chromiumcodereview.appspot.com/51433002/diff/210001/chrome/browser/extensions/api/permissions/permissions_api_helpers.cc File chrome/browser/extensions/api/permissions/permissions_api_helpers.cc (right): https://chromiumcodereview.appspot.com/51433002/diff/210001/chrome/browser/extensions/api/permissions/permissions_api_helpers.cc#newcode60 chrome/browser/extensions/api/permissions/permissions_api_helpers.cc:60: // to apps/extensions. via the permissions API? https://chromiumcodereview.appspot.com/51433002/diff/210001/chrome/browser/extensions/extension_prefs.cc File ...
7 years, 1 month ago (2013-11-09 01:15:29 UTC) #10
rpaquay
Comments inline. Let me know if it is ok to commit like this and address ...
7 years, 1 month ago (2013-11-11 18:37:35 UTC) #11
Yoyo Zhou
mostly nits, but the last comment especially - I think we should put things in ...
7 years, 1 month ago (2013-11-12 02:39:28 UTC) #12
rpaquay
I think I addressed all code review feedback comments in Patchset #5. I also added ...
7 years, 1 month ago (2013-11-12 21:40:31 UTC) #13
Yoyo Zhou
https://chromiumcodereview.appspot.com/51433002/diff/210001/chrome/common/extensions/api/sockets/sockets_handler.cc File chrome/common/extensions/api/sockets/sockets_handler.cc (right): https://chromiumcodereview.appspot.com/51433002/diff/210001/chrome/common/extensions/api/sockets/sockets_handler.cc#newcode245 chrome/common/extensions/api/sockets/sockets_handler.cc:245: scoped_ptr<SocketsManifestData> data_; On 2013/11/11 18:37:35, rpaquay wrote: > On ...
7 years, 1 month ago (2013-11-13 02:57:06 UTC) #14
rpaquay
https://codereview.chromium.org/51433002/diff/210001/chrome/common/extensions/api/sockets/sockets_handler.cc File chrome/common/extensions/api/sockets/sockets_handler.cc (right): https://codereview.chromium.org/51433002/diff/210001/chrome/common/extensions/api/sockets/sockets_handler.cc#newcode245 chrome/common/extensions/api/sockets/sockets_handler.cc:245: scoped_ptr<SocketsManifestData> data_; On 2013/11/13 02:57:07, Yoyo Zhou wrote: > ...
7 years, 1 month ago (2013-11-13 21:28:55 UTC) #15
Yoyo Zhou
LGTM https://chromiumcodereview.appspot.com/51433002/diff/1010001/chrome/common/extensions/api/sockets/sockets_manifest_handler.cc File chrome/common/extensions/api/sockets/sockets_manifest_handler.cc (right): https://chromiumcodereview.appspot.com/51433002/diff/1010001/chrome/common/extensions/api/sockets/sockets_manifest_handler.cc#newcode41 chrome/common/extensions/api/sockets/sockets_manifest_handler.cc:41: if (data) { nit: don't need braces here ...
7 years, 1 month ago (2013-11-14 00:26:54 UTC) #16
rpaquay
pkotwicz@chromium.org: Please review (trivial) changes in chrome/browser/themes/theme_syncable_service_unittest.cc cdn@chromium.org: Please review changes in chrome/common/extensions/extension_messages.h
7 years, 1 month ago (2013-11-14 00:32:52 UTC) #17
pkotwicz
chrome/browser/themes LGTM
7 years, 1 month ago (2013-11-14 00:54:32 UTC) #18
Cris Neckar
On 2013/11/14 00:54:32, pkotwicz wrote: > chrome/browser/themes LGTM IPC changes LGTM
7 years, 1 month ago (2013-11-14 02:14:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/51433002/1310001
7 years, 1 month ago (2013-11-14 03:57:47 UTC) #20
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=188039
7 years, 1 month ago (2013-11-14 04:19:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/51433002/760003
7 years, 1 month ago (2013-11-14 16:18:17 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=189892
7 years, 1 month ago (2013-11-14 16:44:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/51433002/1640001
7 years, 1 month ago (2013-11-14 16:58:00 UTC) #24
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) app_list_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, chromedriver2_unittests, components_unittests, ...
7 years, 1 month ago (2013-11-14 17:22:15 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/51433002/1830001
7 years, 1 month ago (2013-11-14 20:21:21 UTC) #26
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=188385
7 years, 1 month ago (2013-11-14 20:47:24 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/51433002/2030001
7 years, 1 month ago (2013-11-14 21:20:35 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/51433002/2030001
7 years, 1 month ago (2013-11-14 21:48:18 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/51433002/2030001
7 years, 1 month ago (2013-11-15 01:17:51 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/51433002/2030001
7 years, 1 month ago (2013-11-15 03:49:37 UTC) #31
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) nacl_integration http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=224854
7 years, 1 month ago (2013-11-15 07:25:10 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/51433002/2030001
7 years, 1 month ago (2013-11-15 15:28:34 UTC) #33
commit-bot: I haz the power
7 years, 1 month ago (2013-11-15 15:55:30 UTC) #34
Message was sent while issue was closed.
Change committed as 235332

Powered by Google App Engine
This is Rietveld 408576698