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

Issue 55533003: Add extension permissions for new settings override API. (Closed)

Created:
7 years, 1 month ago by MAD
Modified:
7 years, 1 month ago
Reviewers:
gab, robertshield, Yoyo Zhou
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Add extension permissions for new settings override API. Needed to create new class, mimicking SimpleAPIPermission, as opposed to inheriting from SetDisjunctionPermission, since we just needed to construct strings dynamically with extension properties. BUG=306128 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233394

Patch Set 1 : #

Patch Set 2 : Trimmed schema/www. and only show one start page. #

Total comments: 34

Patch Set 3 : CR comments 1 #

Total comments: 5

Patch Set 4 : Sync/Rebase to ToT #

Patch Set 5 : CR comments 2. #

Patch Set 6 : Sync/Rebase to ToT and removed unneeded explicit. #

Total comments: 4

Patch Set 7 : OWNER CR comments addressed. #

Patch Set 8 : Added tests. #

Total comments: 4

Patch Set 9 : LGTM CR Comments addressed. #

Patch Set 10 : Added missing exclusion in gyp file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -1 line) Patch
M chrome/app/generated_resources.grd View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_common.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc View 1 2 3 4 5 6 7 8 3 chunks +37 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/settings_override_permission.h View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/settings_override_permission.cc View 1 2 3 4 5 6 7 8 1 chunk +113 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/settings_override_permission_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +137 lines, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M extensions/common/permissions/permission_message.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
MAD
Can you take a look before I ask for OWNERS approval? Here's the doc describing ...
7 years, 1 month ago (2013-11-01 14:15:21 UTC) #1
gab
lg, comments/suggestions below. FWIW, I was not familiar at all with this section of the ...
7 years, 1 month ago (2013-11-01 22:35:40 UTC) #2
MAD
Thanks a lot! All addressed/answered... Anything else? BYE MAD https://codereview.chromium.org/55533003/diff/70001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/55533003/diff/70001/chrome/app/generated_resources.grd#newcode4378 chrome/app/generated_resources.grd:4378: ...
7 years, 1 month ago (2013-11-03 02:21:20 UTC) #3
robertshield
Drive by comments, overall looks great. https://codereview.chromium.org/55533003/diff/150001/chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc File chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc (right): https://codereview.chromium.org/55533003/diff/150001/chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc#newcode109 chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc:109: RemoveWwwPrefix(CreateManifestURL(info->search_engine->search_url)-> Please add ...
7 years, 1 month ago (2013-11-04 01:11:13 UTC) #4
MAD
Thanks... Added a comment for the prefix, but I don't know enough about your other ...
7 years, 1 month ago (2013-11-04 02:06:34 UTC) #5
robertshield
https://codereview.chromium.org/55533003/diff/150001/chrome/common/extensions/permissions/settings_override_permission.cc File chrome/common/extensions/permissions/settings_override_permission.cc (right): https://codereview.chromium.org/55533003/diff/150001/chrome/common/extensions/permissions/settings_override_permission.cc#newcode59 chrome/common/extensions/permissions/settings_override_permission.cc:59: CHECK(info() == rhs->info()); On 2013/11/04 02:06:34, MAD wrote: > ...
7 years, 1 month ago (2013-11-04 02:29:01 UTC) #6
MAD
Adding yoz@ for OWNERS review, and a question from one of the reviewers: Why are ...
7 years, 1 month ago (2013-11-04 14:45:41 UTC) #7
gab
https://codereview.chromium.org/55533003/diff/70001/chrome/common/extensions/permissions/settings_override_permission.h File chrome/common/extensions/permissions/settings_override_permission.h (right): https://codereview.chromium.org/55533003/diff/70001/chrome/common/extensions/permissions/settings_override_permission.h#newcode18 chrome/common/extensions/permissions/settings_override_permission.h:18: explicit SettingsOverrideAPIPermission( On 2013/11/03 02:21:20, MAD wrote: > On ...
7 years, 1 month ago (2013-11-04 18:04:30 UTC) #8
MAD
D'Ho! I thought you wanted me to add explicit... :-) Will remove when I'm back ...
7 years, 1 month ago (2013-11-04 18:25:39 UTC) #9
MAD
Done, removed explicit and synced/rebased again... Thanks! BYE MAD
7 years, 1 month ago (2013-11-04 19:31:19 UTC) #10
Yoyo Zhou
Are there any tests for this? It would help to see an example of how ...
7 years, 1 month ago (2013-11-04 20:33:40 UTC) #11
MAD
The code to load this from a manifest is already in (although, I heard the ...
7 years, 1 month ago (2013-11-04 20:50:24 UTC) #12
Yoyo Zhou
By a test, I mean you can add a unit test that checks that an ...
7 years, 1 month ago (2013-11-04 22:15:50 UTC) #13
MAD
Thanks for the comments, some answers/comments/changes below... As for the tests, I'm adding one inspired ...
7 years, 1 month ago (2013-11-05 01:02:05 UTC) #14
Yoyo Zhou
On 2013/11/05 01:02:05, MAD wrote: > Thanks for the comments, some answers/comments/changes below... > > ...
7 years, 1 month ago (2013-11-05 01:55:24 UTC) #15
MAD
If dragging a new version of a locally packed crx with a new version number ...
7 years, 1 month ago (2013-11-05 02:30:14 UTC) #16
Yoyo Zhou
On 2013/11/05 02:30:14, MAD wrote: > If dragging a new version of a locally packed ...
7 years, 1 month ago (2013-11-05 02:40:10 UTC) #17
MAD
Got it... Succeeded in getting one test to run, I need to write a few ...
7 years, 1 month ago (2013-11-05 03:10:11 UTC) #18
MAD
OK, tests were added, and some constants were renamed to fit with the new names ...
7 years, 1 month ago (2013-11-05 13:37:34 UTC) #19
Yoyo Zhou
LGTM https://codereview.chromium.org/55533003/diff/760001/chrome/common/extensions/permissions/chrome_api_permissions.cc File chrome/common/extensions/permissions/chrome_api_permissions.cc (right): https://codereview.chromium.org/55533003/diff/760001/chrome/common/extensions/permissions/chrome_api_permissions.cc#newcode352 chrome/common/extensions/permissions/chrome_api_permissions.cc:352: { APIPermission::kHomePage, "homepage", I suspect this will be ...
7 years, 1 month ago (2013-11-05 21:11:06 UTC) #20
MAD
Cool, thanks... Addressed and about to CQ... BYE MAD https://codereview.chromium.org/55533003/diff/760001/chrome/common/extensions/permissions/chrome_api_permissions.cc File chrome/common/extensions/permissions/chrome_api_permissions.cc (right): https://codereview.chromium.org/55533003/diff/760001/chrome/common/extensions/permissions/chrome_api_permissions.cc#newcode352 chrome/common/extensions/permissions/chrome_api_permissions.cc:352: ...
7 years, 1 month ago (2013-11-06 13:56:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/55533003/860001
7 years, 1 month ago (2013-11-06 13:57:30 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-06 14:43:24 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/55533003/1100002
7 years, 1 month ago (2013-11-06 15:39:53 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=95067
7 years, 1 month ago (2013-11-06 20:20:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/55533003/1100002
7 years, 1 month ago (2013-11-06 20:32:56 UTC) #26
commit-bot: I haz the power
7 years, 1 month ago (2013-11-06 22:19:19 UTC) #27
Message was sent while issue was closed.
Change committed as 233394

Powered by Google App Engine
This is Rietveld 408576698