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

Issue 1478433002: Permissions: Move common logic from DecidePermission to RequestPermission (Closed)

Created:
5 years ago by johnme
Modified:
5 years ago
CC:
chromium-reviews, johnme+watch_chromium.org, kcarattini+watch_chromium.org, mlamouri+watch-geolocation_chromium.org, mlamouri+watch-permissions_chromium.org, mvanouwerkerk+watch_chromium.org, Michael van Ouwerkerk, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@innoinherit
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Permissions: Move common logic from DecidePermission to RequestPermission Refactoring - PermissionContextBase::DecidePermission is the natural method to override, but it contains a bunch of common logic that most permissions need. This patch moves that logic to RequestPermission, making it easier to override DecidePermission. BUG=479679 Committed: https://crrev.com/c36a56c4efdde9d080a04650f66f47cb5a7f9484 Cr-Commit-Position: refs/heads/master@{#362720}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments #

Patch Set 3 : Rebase / git cl format #

Messages

Total messages: 20 (9 generated)
johnme
mlamouri: Please review overall patch. Note that I added some temporary TODOs for parts where ...
5 years ago (2015-11-24 19:15:12 UTC) #2
mlamouri (slow - plz ping)
sgtm -- it matches what we discussed. Thanks for doing this! :) Could you update ...
5 years ago (2015-11-26 12:45:50 UTC) #3
johnme
Addressed review comments - thanks :) > Could you update ProtectedMediaIdentifierPermissionContext > ::RequestPermission. I think ...
5 years ago (2015-11-26 18:28:48 UTC) #4
mlamouri (slow - plz ping)
lgtm - thanks! :)
5 years ago (2015-11-27 13:38:15 UTC) #5
johnme
dalecurtis@chromium.org: Please review changes in chrome/browser/media/ jsbell@chromium.org: Please review changes in chrome/browser/storage/ Thanks!
5 years ago (2015-11-27 14:03:41 UTC) #7
jsbell
lgtm
5 years ago (2015-11-30 17:14:46 UTC) #8
DaleCurtis
=> xhwang who is more familiar with this code.
5 years ago (2015-11-30 17:43:21 UTC) #10
xhwang
chrome/browser/media/protected_media_identifier_permission_context.* lgtm
5 years ago (2015-11-30 18:23:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1478433002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1478433002/40001
5 years ago (2015-12-02 15:16:39 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-02 15:56:48 UTC) #18
commit-bot: I haz the power
5 years ago (2015-12-02 15:58:13 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c36a56c4efdde9d080a04650f66f47cb5a7f9484
Cr-Commit-Position: refs/heads/master@{#362720}

Powered by Google App Engine
This is Rietveld 408576698