Chromium Code Reviews
DescriptionMove logic to show permission prompts into MediaStreamDevicesController
This moves the logic for showing media permission prompts into a static
function in MediaStreamDevicesController. This is part of a refactoring
to change media permissions to use the PermissionManager codepaths to
match the way all other permissions in Chrome work.
PermissionManager does a combination of checking the permission status and
showing the prompt if needed. So we need to re-arrange the media permission
logic such that these pieces of logic are together. This CL shields consumers
of MediaStreamDevicesController from needing to show the prompt themselves.
TBR=achuith@chromium.org,mgiuca@chromium.org
BUG=596786
Review-Url: https://codereview.chromium.org/2706813004
Cr-Commit-Position: refs/heads/master@{#453167}
Committed: https://chromium.googlesource.com/chromium/src/+/1417353d43fb4bed6a21dc62edc35c371eba984a
Patch Set 1 #
Total comments: 2
Patch Set 2 : Move logic to show permission prompts into MediaStreamDevicesController #
Dependent Patchsets: Messages
Total messages: 26 (17 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||