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

Issue 10692160: Support socket endpoint permissions for AppsV2 Socket API. (Closed)

Created:
8 years, 5 months ago by Peng
Modified:
8 years, 4 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Support socket endpoint permissions for AppsV2 Socket API. BUG=130222 TEST=unittest & browser_test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151956

Patch Set 1 : Update #

Total comments: 26

Patch Set 2 : Fix review issues. #

Patch Set 3 : Support socket endpoint permissions #

Total comments: 43

Patch Set 4 : Fix review issues and add some unit tests #

Total comments: 9

Patch Set 5 : Fix review issues #

Patch Set 6 : Rebase #

Patch Set 7 : Fix compile issues.wq #

Total comments: 32

Patch Set 8 : Fix review issues #

Total comments: 6

Patch Set 9 : Use signle key dict for permission #

Patch Set 10 : Fix review issues #

Patch Set 11 : Rebase and fix a test issue #

Patch Set 12 : FIx compile errors #

Patch Set 13 : Rebase #

Patch Set 14 : Fix a style issue #

Patch Set 15 : Fix a unittest #

Patch Set 16 : Fix a unittest #

Patch Set 17 : Rebase #

Patch Set 18 : Rebase and fix a unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2186 lines, -118 lines) Patch
M chrome/browser/background/background_application_list_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/permissions/permissions_api.cc View 1 2 3 4 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/permissions/permissions_api_helpers.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.cc View 1 2 3 4 5 6 7 8 9 8 chunks +87 lines, -22 lines 0 comments Download
M chrome/browser/extensions/api/socket/tcp_socket.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/socket/tcp_socket.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/socket/udp_socket.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/socket/udp_socket.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +47 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +16 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +26 lines, -4 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 3 4 5 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.cc View 1 2 2 chunks +81 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +48 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +103 lines, -7 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +97 lines, -4 lines 0 comments Download
A chrome/common/extensions/permissions/api_permission_set.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/api_permission_set.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +182 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/api_permission_set_unittest.cc View 1 2 3 4 1 chunk +307 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set.h View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set.cc View 1 2 3 9 chunks +25 lines, -28 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 14 chunks +128 lines, -10 lines 0 comments Download
M chrome/common/extensions/permissions/permissions_info.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/extensions/permissions/permissions_info.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
A chrome/common/extensions/permissions/socket_permission.h View 1 2 3 4 5 6 1 chunk +94 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/socket_permission.cc View 1 2 3 4 5 6 7 8 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/socket_permission_data.h View 1 2 3 4 5 6 7 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/socket_permission_data.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +231 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/socket_permission_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +266 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/socket/api/manifest.json View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/socket_permissions/empty.json View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/socket_permissions/socket1.json View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/socket_permissions/socket2.json View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
Peng
Hi Mike, Could please review this CL? Thanks.
8 years, 5 months ago (2012-07-26 19:02:13 UTC) #1
miket_OOO
I don't see unit tests for the new APIPermissionSet class. The CL description no longer ...
8 years, 4 months ago (2012-07-31 18:18:36 UTC) #2
Peng
http://codereview.chromium.org/10692160/diff/22019/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): http://codereview.chromium.org/10692160/diff/22019/chrome/browser/extensions/extension_prefs.cc#newcode495 chrome/browser/extensions/extension_prefs.cc:495: tmp = NULL; On 2012/07/31 18:18:37, miket wrote: > ...
8 years, 4 months ago (2012-07-31 19:32:28 UTC) #3
Peng
On 2012/07/31 18:18:36, miket wrote: > I don't see unit tests for the new APIPermissionSet ...
8 years, 4 months ago (2012-07-31 19:36:26 UTC) #4
miket_OOO
On 2012/07/31 19:36:26, Peng wrote: > On 2012/07/31 18:18:36, miket wrote: > > I don't ...
8 years, 4 months ago (2012-07-31 23:23:45 UTC) #5
Peng
On 2012/07/31 23:23:45, miket wrote: > On 2012/07/31 19:36:26, Peng wrote: > > On 2012/07/31 ...
8 years, 4 months ago (2012-08-01 15:28:41 UTC) #6
miket_OOO
Whichever makes more sense to you.
8 years, 4 months ago (2012-08-01 16:15:57 UTC) #7
Peng
On 2012/08/01 16:15:57, miket wrote: > Whichever makes more sense to you. Hi Mike, I ...
8 years, 4 months ago (2012-08-03 18:43:25 UTC) #8
miket_OOO
This is going to need another look, and it would be really helpful if each ...
8 years, 4 months ago (2012-08-06 21:04:06 UTC) #9
Peng
I fixed issues and added some unit tests. Please take a look. Thanks. http://codereview.chromium.org/10692160/diff/18017/chrome/browser/extensions/api/permissions/permissions_api.cc File ...
8 years, 4 months ago (2012-08-07 21:31:54 UTC) #10
miket_OOO
We're getting very close. I would approve except I'd like to hear your thoughts about ...
8 years, 4 months ago (2012-08-07 23:02:46 UTC) #11
Peng
http://codereview.chromium.org/10692160/diff/18017/chrome/common/extensions/permissions/socket_permission_data.cc File chrome/common/extensions/permissions/socket_permission_data.cc (right): http://codereview.chromium.org/10692160/diff/18017/chrome/common/extensions/permissions/socket_permission_data.cc#newcode19 chrome/common/extensions/permissions/socket_permission_data.cc:19: host_("*"), On 2012/08/07 23:02:47, miket wrote: > On 2012/08/07 ...
8 years, 4 months ago (2012-08-08 15:40:07 UTC) #12
Mihai Parparita -not on Chrome
The permission detail format (in both the prefs and the manifest) seems to be ["<permission_name>", ...
8 years, 4 months ago (2012-08-10 00:16:16 UTC) #13
Peng
http://codereview.chromium.org/10692160/diff/19098/chrome/browser/extensions/api/socket/socket.h File chrome/browser/extensions/api/socket/socket.h (right): http://codereview.chromium.org/10692160/diff/19098/chrome/browser/extensions/api/socket/socket.h#newcode39 chrome/browser/extensions/api/socket/socket.h:39: TYPE_NONE = 0, On 2012/08/10 00:16:16, Mihai Parparita wrote: ...
8 years, 4 months ago (2012-08-13 16:26:10 UTC) #14
Peng
On 2012/08/10 00:16:16, Mihai Parparita wrote: > The permission detail format (in both the prefs ...
8 years, 4 months ago (2012-08-13 16:31:36 UTC) #15
Aaron Boodman
On 2012/08/13 16:31:36, Peng wrote: > On 2012/08/10 00:16:16, Mihai Parparita wrote: > > The ...
8 years, 4 months ago (2012-08-13 22:33:27 UTC) #16
Mihai Parparita -not on Chrome
My main reason for preferring a single-key dictionary is that we take advantage of the ...
8 years, 4 months ago (2012-08-14 00:29:56 UTC) #17
Mihai Parparita -not on Chrome
Just some small additional nits. http://codereview.chromium.org/10692160/diff/27043/chrome/browser/extensions/api/socket/socket.h File chrome/browser/extensions/api/socket/socket.h (right): http://codereview.chromium.org/10692160/diff/27043/chrome/browser/extensions/api/socket/socket.h#newcode77 chrome/browser/extensions/api/socket/socket.h:77: virtual SocketType socket_type() const ...
8 years, 4 months ago (2012-08-14 00:53:09 UTC) #18
Peng
http://codereview.chromium.org/10692160/diff/27043/chrome/browser/extensions/api/socket/socket.h File chrome/browser/extensions/api/socket/socket.h (right): http://codereview.chromium.org/10692160/diff/27043/chrome/browser/extensions/api/socket/socket.h#newcode77 chrome/browser/extensions/api/socket/socket.h:77: virtual SocketType socket_type() const = 0; On 2012/08/14 00:53:09, ...
8 years, 4 months ago (2012-08-14 17:43:31 UTC) #19
Peng
I updated the CL to use the single ket dict. Please check it. Thanks. On ...
8 years, 4 months ago (2012-08-14 17:44:12 UTC) #20
Mihai Parparita -not on Chrome
LGTM
8 years, 4 months ago (2012-08-15 00:01:12 UTC) #21
Mihai Parparita -not on Chrome
BTW, the tryserver failures look legitimate. Mihai On Tue, Aug 14, 2012 at 5:01 PM, ...
8 years, 4 months ago (2012-08-15 00:02:26 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/10692160/23016
8 years, 4 months ago (2012-08-15 00:16:50 UTC) #23
commit-bot: I haz the power
Failed to apply patch for chrome/common/extensions/permissions/api_permission.cc: While running patch -p1 --forward --force; patching file chrome/common/extensions/permissions/api_permission.cc ...
8 years, 4 months ago (2012-08-15 00:17:05 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/10692160/36072
8 years, 4 months ago (2012-08-15 00:23:13 UTC) #25
commit-bot: I haz the power
Presubmit check for 10692160-36072 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-15 00:23:31 UTC) #26
Peng
Hi Ben, Could you please review changes in chrome/test/data/extensions/* and chrome/chrome_*.gypi? Thanks.
8 years, 4 months ago (2012-08-15 00:30:35 UTC) #27
Mihai Parparita -not on Chrome
On Tue, Aug 14, 2012 at 5:30 PM, <penghuang@chromium.org> wrote: > Hi Ben, Could you ...
8 years, 4 months ago (2012-08-15 00:33:47 UTC) #28
Peng
Hi Ben, Could you please do an owner review for changes in chrome/chrome_*.gypi? Please ignore ...
8 years, 4 months ago (2012-08-15 02:59:46 UTC) #29
Ben Goodger (Google)
gyp/data changes lgtm
8 years, 4 months ago (2012-08-15 15:46:21 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/10692160/16169
8 years, 4 months ago (2012-08-15 16:00:27 UTC) #31
commit-bot: I haz the power
Try job failure for 10692160-16169 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 4 months ago (2012-08-15 16:53:51 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/10692160/34086
8 years, 4 months ago (2012-08-15 18:52:56 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/10692160/37002
8 years, 4 months ago (2012-08-15 19:37:35 UTC) #34
commit-bot: I haz the power
Try job failure for 10692160-37002 on linux_chromeos for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=33071 Step "update" is always ...
8 years, 4 months ago (2012-08-15 20:07:05 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/10692160/25016
8 years, 4 months ago (2012-08-15 20:15:59 UTC) #36
commit-bot: I haz the power
Try job failure for 10692160-25016 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 4 months ago (2012-08-15 22:26:36 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/10692160/25016
8 years, 4 months ago (2012-08-15 22:51:05 UTC) #38
commit-bot: I haz the power
Try job failure for 10692160-25016 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 4 months ago (2012-08-16 00:09:25 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/10692160/23023
8 years, 4 months ago (2012-08-16 16:17:26 UTC) #40
commit-bot: I haz the power
Try job failure for 10692160-23023 (retry) on win_rel for step "content_browsertests". It's a second try, ...
8 years, 4 months ago (2012-08-16 18:34:20 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/10692160/23023
8 years, 4 months ago (2012-08-16 18:45:39 UTC) #42
commit-bot: I haz the power
8 years, 4 months ago (2012-08-16 20:22:57 UTC) #43
Change committed as 151956

Powered by Google App Engine
This is Rietveld 408576698