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

Issue 2975593002: [vr] Deny permission requests in VR mode

Created:
3 years, 5 months ago by Ian Vollick
Modified:
3 years, 5 months ago
Reviewers:
Timothy Loh, raymes
CC:
chromium-reviews, mlamouri+watch-permissions_chromium.org, raymes+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[vr] Deny permission requests in VR mode These currently imply monocularly rendered content which is quite disruptive in VR. Until the UI for these requests is properly supported in VR, we should deny them. BUG=728421

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 3

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -187 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/android/download/download_controller.cc View 1 2 3 4 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/android/tab_web_contents_delegate_android.cc View 1 2 3 3 chunks +2 lines, -9 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 3 chunks +2 lines, -2 lines 0 comments Download
D chrome/browser/android/vr_shell/vr_tab_helper.h View 1 2 3 1 chunk +0 lines, -38 lines 0 comments Download
D chrome/browser/android/vr_shell/vr_tab_helper.cc View 1 2 3 1 chunk +0 lines, -47 lines 0 comments Download
M chrome/browser/chrome_quota_permission_context.cc View 1 2 3 3 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/download/download_request_limiter.cc View 1 2 3 2 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/media/android/router/media_router_dialog_controller_android.cc View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client.cc View 1 2 3 3 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/permissions/permission_manager.cc View 1 2 3 3 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/permissions/permission_manager_unittest.cc View 1 2 3 5 chunks +3 lines, -11 lines 0 comments Download
M chrome/browser/ui/android/login_handler_android.cc View 1 2 3 2 chunks +2 lines, -9 lines 0 comments Download
M chrome/browser/ui/android/ssl_client_certificate_request.cc View 1 2 3 3 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/ui/android/usb_chooser_dialog_android.cc View 1 2 3 3 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_unittest.cc View 1 2 3 2 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 1 2 3 4 chunks +2 lines, -11 lines 0 comments Download
A + chrome/browser/vr/vr_tab_helper.h View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
A + chrome/browser/vr/vr_tab_helper.cc View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M content/public/common/web_preferences.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (7 generated)
Ian Vollick
Hey! One issue we'd run into was that some permission bubbles, although not displayed in ...
3 years, 5 months ago (2017-07-10 13:09:36 UTC) #7
raymes
Hmm, it doesn't feel ideal to do this at the PermissionRequestManager level because at that ...
3 years, 5 months ago (2017-07-11 01:43:23 UTC) #9
raymes
https://codereview.chromium.org/2975593002/diff/40001/chrome/browser/permissions/permission_request_manager.cc File chrome/browser/permissions/permission_request_manager.cc (right): https://codereview.chromium.org/2975593002/diff/40001/chrome/browser/permissions/permission_request_manager.cc#newcode145 chrome/browser/permissions/permission_request_manager.cc:145: request->PermissionDenied(); On 2017/07/11 01:43:23, raymes wrote: > nit: you ...
3 years, 5 months ago (2017-07-11 01:44:38 UTC) #10
raymes
> In the long term we probably want everything to go through PermissionManager. In > ...
3 years, 5 months ago (2017-07-11 03:16:28 UTC) #11
Timothy Loh
3 years, 5 months ago (2017-07-11 03:37:54 UTC) #12
I chatted with Raymes offline and we think it'd be nicer for the
non-PermissionManager callsites to explicitly handle VR and for the
PermissionRequestManager to DCHECK that VR is off. AIUI there are only 3 request
types that use the PRM directly: QuotaPermissionRequest,
RegisterProtocolHandlerPermissionRequest and DownloadPermissionRequest. We'll
make new permissions added in the future go through the PermissionManager so the
check won't need to be added to more places later.

Powered by Google App Engine
This is Rietveld 408576698