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

Issue 12209094: Support requesting subsets of host permissions using the permissions API. (Closed)

Created:
7 years, 10 months ago by not at google - send to devlin
Modified:
7 years, 10 months ago
Reviewers:
Yoyo Zhou, Matt Perry
CC:
chromium-reviews, Aaron Boodman, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Support requesting subsets of host permissions using the permissions API. BUG=158004 TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182287

Patch Set 1 #

Patch Set 2 : done #

Patch Set 3 : . #

Total comments: 6

Patch Set 4 : encompass -> contains #

Patch Set 5 : fix urlpatternsettest #

Total comments: 7

Patch Set 6 : encompasses -> contains #

Patch Set 7 : unnecessary rebase #

Patch Set 8 : is it the ostream? #

Patch Set 9 : are you happy yet?!?!? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+456 lines, -94 lines) Patch
M chrome/browser/extensions/api/permissions/permissions_api.cc View 1 2 3 4 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/permissions/permissions_apitest.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/extensions/permissions/permission_set.cc View 1 2 3 4 5 1 chunk +3 lines, -14 lines 0 comments Download
A chrome/test/data/extensions/api_test/permissions/host_subsets/background.js View 1 1 chunk +193 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/permissions/host_subsets/manifest.json View 1 1 chunk +10 lines, -0 lines 0 comments Download
M extensions/common/url_pattern.h View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -7 lines 0 comments Download
M extensions/common/url_pattern.cc View 1 2 3 4 5 6 7 8 4 chunks +46 lines, -32 lines 0 comments Download
M extensions/common/url_pattern_set.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M extensions/common/url_pattern_set.cc View 1 2 3 4 5 6 7 8 2 chunks +17 lines, -3 lines 0 comments Download
M extensions/common/url_pattern_set_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/common/url_pattern_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +150 lines, -27 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
not at google - send to devlin
Matt/Yoz, not sure which of you is more comfortable reviewing this. I also plan on ...
7 years, 10 months ago (2013-02-11 23:44:21 UTC) #1
Matt Perry
https://codereview.chromium.org/12209094/diff/5001/extensions/common/url_pattern_set.cc File extensions/common/url_pattern_set.cc (right): https://codereview.chromium.org/12209094/diff/5001/extensions/common/url_pattern_set.cc#newcode243 extensions/common/url_pattern_set.cc:243: if (needs_comma) could this just be "it != set.begin()" ...
7 years, 10 months ago (2013-02-12 01:14:47 UTC) #2
not at google - send to devlin
Verbosity aside - done. https://codereview.chromium.org/12209094/diff/5001/extensions/common/url_pattern_set.cc File extensions/common/url_pattern_set.cc (right): https://codereview.chromium.org/12209094/diff/5001/extensions/common/url_pattern_set.cc#newcode243 extensions/common/url_pattern_set.cc:243: if (needs_comma) On 2013/02/12 01:14:47, ...
7 years, 10 months ago (2013-02-12 01:49:36 UTC) #3
Yoyo Zhou
https://codereview.chromium.org/12209094/diff/5001/chrome/test/data/extensions/api_test/permissions/host_subsets/background.js File chrome/test/data/extensions/api_test/permissions/host_subsets/background.js (right): https://codereview.chromium.org/12209094/diff/5001/chrome/test/data/extensions/api_test/permissions/host_subsets/background.js#newcode193 chrome/test/data/extensions/api_test/permissions/host_subsets/background.js:193: test.runTests([main]); Not super important, but this doesn't have to ...
7 years, 10 months ago (2013-02-12 06:46:25 UTC) #4
not at google - send to devlin
p.s. fixed failing test due to changing the way that Contains works, but it was ...
7 years, 10 months ago (2013-02-12 17:06:43 UTC) #5
Matt Perry
lgtm https://codereview.chromium.org/12209094/diff/2003/extensions/common/url_pattern.h File extensions/common/url_pattern.h (right): https://codereview.chromium.org/12209094/diff/2003/extensions/common/url_pattern.h#newcode166 extensions/common/url_pattern.h:166: bool Encompasses(const URLPattern& other) const; rename to Contains? ...
7 years, 10 months ago (2013-02-12 19:07:16 UTC) #6
Yoyo Zhou
https://codereview.chromium.org/12209094/diff/2003/extensions/common/url_pattern.h File extensions/common/url_pattern.h (right): https://codereview.chromium.org/12209094/diff/2003/extensions/common/url_pattern.h#newcode166 extensions/common/url_pattern.h:166: bool Encompasses(const URLPattern& other) const; On 2013/02/12 19:07:17, Matt ...
7 years, 10 months ago (2013-02-12 19:45:04 UTC) #7
Matt Perry
https://codereview.chromium.org/12209094/diff/2003/extensions/common/url_pattern.h File extensions/common/url_pattern.h (right): https://codereview.chromium.org/12209094/diff/2003/extensions/common/url_pattern.h#newcode166 extensions/common/url_pattern.h:166: bool Encompasses(const URLPattern& other) const; On 2013/02/12 19:45:04, Yoyo ...
7 years, 10 months ago (2013-02-12 19:50:00 UTC) #8
Yoyo Zhou
https://codereview.chromium.org/12209094/diff/2003/extensions/common/url_pattern.h File extensions/common/url_pattern.h (right): https://codereview.chromium.org/12209094/diff/2003/extensions/common/url_pattern.h#newcode166 extensions/common/url_pattern.h:166: bool Encompasses(const URLPattern& other) const; On 2013/02/12 19:50:00, Matt ...
7 years, 10 months ago (2013-02-12 19:53:55 UTC) #9
not at google - send to devlin
https://codereview.chromium.org/12209094/diff/2003/extensions/common/url_pattern.h File extensions/common/url_pattern.h (right): https://codereview.chromium.org/12209094/diff/2003/extensions/common/url_pattern.h#newcode166 extensions/common/url_pattern.h:166: bool Encompasses(const URLPattern& other) const; On 2013/02/12 19:07:17, Matt ...
7 years, 10 months ago (2013-02-12 19:56:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/12209094/13003
7 years, 10 months ago (2013-02-12 20:15:21 UTC) #11
commit-bot: I haz the power
Presubmit check for 12209094-13003 failed and returned exit status 1. INFO:root:Found 13 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-12 20:15:33 UTC) #12
not at google - send to devlin
huh?????????
7 years, 10 months ago (2013-02-12 20:19:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/12209094/13003
7 years, 10 months ago (2013-02-13 01:28:51 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-13 02:47:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/12209094/13003
7 years, 10 months ago (2013-02-13 03:02:27 UTC) #16
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-13 03:36:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/12209094/6018
7 years, 10 months ago (2013-02-13 03:52:22 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-13 04:46:33 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/12209094/18001
7 years, 10 months ago (2013-02-13 16:15:30 UTC) #20
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-13 17:05:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/12209094/22005
7 years, 10 months ago (2013-02-13 17:28:27 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/12209094/22005
7 years, 10 months ago (2013-02-13 19:31:38 UTC) #23
commit-bot: I haz the power
7 years, 10 months ago (2013-02-13 19:43:49 UTC) #24
Message was sent while issue was closed.
Change committed as 182287

Powered by Google App Engine
This is Rietveld 408576698