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

Issue 2586153002: Move kill switch and secure origin checking logic (Closed)

Created:
4 years ago by raymes
Modified:
4 years ago
CC:
chromium-reviews, awdf+watch_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, jam, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, mlamouri+watch-permissions_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move kill switch and secure origin checking logic Currently the permission kill switch check and secure origin checks happen in PermissionContextBase::GetPermissionStatus. This function is virtual which means that it's easy to accidentally override this logic unintentionally, and hard to insert extra permission checks which take precedence over the user setting but not over the kill switch. This CL makes GetPermissionStatus non-virtual such that the kill switch and origin checking logic is always called and adds a new virtual GetPermissionStatusInternal function which subclasses can override as needed. TBR=tommycli@chromium.org BUG=674389 Committed: https://crrev.com/0f93a5833613dd2786cc45f9c75e2c8723f855f5 Cr-Commit-Position: refs/heads/master@{#439700}

Patch Set 1 #

Patch Set 2 : Move kill switch and secure origin checking logic #

Patch Set 3 : Move kill switch and secure origin checking logic #

Messages

Total messages: 20 (11 generated)
raymes
4 years ago (2016-12-19 04:48:26 UTC) #4
kcarattini
lgtm
4 years ago (2016-12-19 05:14:23 UTC) #5
raymes
+peter for notifications/ +sergeyu for media/ +tommycli for plugins/
4 years ago (2016-12-19 05:36:27 UTC) #9
Peter Beverloo
lgtm
4 years ago (2016-12-19 14:14:40 UTC) #10
Sergey Ulanov
lgtm
4 years ago (2016-12-20 01:13:10 UTC) #11
raymes
TBR=tommycli for trivial change in client code flash_permission_context.*
4 years ago (2016-12-20 04:02:19 UTC) #13
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/2586153002/40001
4 years ago (2016-12-20 04:02:47 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-20 04:09:17 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-20 04:11:42 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0f93a5833613dd2786cc45f9c75e2c8723f855f5
Cr-Commit-Position: refs/heads/master@{#439700}

Powered by Google App Engine
This is Rietveld 408576698