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

Issue 2898653004: Implement PermissionServiceImpl::RequestPermission in terms of RequestPermissions (Closed)

Created:
3 years, 7 months ago by raymes
Modified:
3 years, 6 months ago
CC:
chrome-apps-syd-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement PermissionServiceImpl::RequestPermission in terms of RequestPermissions This removes duplicate code from PermissionServiceImpl. RequestPermissions and RequestPermission used to duplicate most of their code. Instead RequestPermission is now implemented on top of the more general RequestPermissions function, but with only a single item in the request vector. This is in preparation for adding feature policy checks to these functions, which would otherwise add more duplicated code. This also fixes a small bug in ShellPermissionManager which was tickled by this change. BUG=689802 Review-Url: https://codereview.chromium.org/2898653004 Cr-Commit-Position: refs/heads/master@{#475282} Committed: https://chromium.googlesource.com/chromium/src/+/d93dbb23431e74ccc31aba4183fc2aef78a6553c

Patch Set 1 #

Patch Set 2 : Implement PermissionServiceImpl::RequestPermission in terms of RequestPermissions #

Patch Set 3 : Implement PermissionServiceImpl::RequestPermission in terms of RequestPermissions #

Patch Set 4 : Implement PermissionServiceImpl::RequestPermission in terms of RequestPermissions #

Patch Set 5 : Implement PermissionServiceImpl::RequestPermission in terms of RequestPermissions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -41 lines) Patch
M content/browser/permissions/permission_service_impl.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 2 1 chunk +5 lines, -38 lines 0 comments Download
M content/shell/browser/shell_permission_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (24 generated)
raymes
3 years, 7 months ago (2017-05-23 05:06:28 UTC) #2
raymes
ping :)
3 years, 7 months ago (2017-05-24 22:59:58 UTC) #17
mlamouri (slow - plz ping)
lgtm
3 years, 7 months ago (2017-05-26 14:54:46 UTC) #18
raymes
+kinuko for the very small bugfix in content/shell/browser/shell_permission_manager.cc
3 years, 6 months ago (2017-05-29 00:18:43 UTC) #20
kinuko
lgtm
3 years, 6 months ago (2017-05-29 03:51:20 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2898653004/80001
3 years, 6 months ago (2017-05-29 03:52:54 UTC) #28
commit-bot: I haz the power
3 years, 6 months ago (2017-05-29 03:57:10 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/d93dbb23431e74ccc31aba4183fc...

Powered by Google App Engine
This is Rietveld 408576698