Only enable kUsePermissionManagerForMediaRequests when the PermissionRequestManager is used

Desktop / Chromium - raymes [chromium.org] - 16 June 2017 07:10 EDT

This adds a check which ensures that the PermissionManager is used to request permission for Media requests only when the PermissionRequestManager is enabled. If it's not enabled, the grouped request won't work correctly.

BUG=596786

Review-Url: https://codereview.chromium.org/2941943002 Cr-Commit-Position: refs/heads/master@{#480017}

9ea317b Only enable kUsePermissionManagerForMediaRequests when the PermissionRequestManager is used
chrome/browser/media/webrtc/media_stream_devices_controller.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Upstream: git.chromium.org


  • Share