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

Issue 2706813004: Move logic to show permission prompts into MediaStreamDevicesController (Closed)

Created:
3 years, 10 months ago by raymes
Modified:
3 years, 9 months ago
CC:
chromium-reviews, alemate+watch_chromium.org, oshima+watch_chromium.org, chfremer+watch_chromium.org, achuith+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, tfarina, phoglund+watch_chromium.org, davemoore+watch_chromium.org, Matt Giuca, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -241 lines) Patch
M chrome/browser/chromeos/login/ui/webui_login_view.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/media/webrtc/media_stream_devices_controller.h View 2 chunks +20 lines, -7 lines 0 comments Download
M chrome/browser/media/webrtc/media_stream_devices_controller.cc View 1 5 chunks +121 lines, -57 lines 0 comments Download
M chrome/browser/media/webrtc/media_stream_devices_controller_browsertest.cc View 18 chunks +157 lines, -104 lines 0 comments Download
M chrome/browser/media/webrtc/permission_bubble_media_access_handler.cc View 1 2 chunks +4 lines, -68 lines 0 comments Download
M chrome/browser/ui/app_list/start_page_service.cc View 1 chunk +2 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (17 generated)
raymes
Hey Tim, could you ptal? Note that this is all just shifting logic around so ...
3 years, 10 months ago (2017-02-21 06:58:24 UTC) #2
Timothy Loh
lgtm https://codereview.chromium.org/2706813004/diff/1/chrome/browser/media/webrtc/media_stream_devices_controller_browsertest.cc File chrome/browser/media/webrtc/media_stream_devices_controller_browsertest.cc (right): https://codereview.chromium.org/2706813004/diff/1/chrome/browser/media/webrtc/media_stream_devices_controller_browsertest.cc#newcode80 chrome/browser/media/webrtc/media_stream_devices_controller_browsertest.cc:80: CreateMediaStreamDevicesController( Just double checking I understand, this is ...
3 years, 10 months ago (2017-02-23 01:03:07 UTC) #8
raymes
https://codereview.chromium.org/2706813004/diff/1/chrome/browser/media/webrtc/media_stream_devices_controller_browsertest.cc File chrome/browser/media/webrtc/media_stream_devices_controller_browsertest.cc (right): https://codereview.chromium.org/2706813004/diff/1/chrome/browser/media/webrtc/media_stream_devices_controller_browsertest.cc#newcode80 chrome/browser/media/webrtc/media_stream_devices_controller_browsertest.cc:80: CreateMediaStreamDevicesController( On 2017/02/23 01:03:07, Timothy Loh wrote: > Just ...
3 years, 10 months ago (2017-02-23 04:55:43 UTC) #11
raymes
sergeyu: could you PTAL? Thanks!
3 years, 10 months ago (2017-02-23 04:56:21 UTC) #13
raymes
On 2017/02/23 04:56:21, raymes wrote: > sergeyu: could you PTAL? Thanks! Also, if you need ...
3 years, 10 months ago (2017-02-23 04:58:01 UTC) #14
Sergey Ulanov
lgtm
3 years, 10 months ago (2017-02-23 22:57:05 UTC) #17
raymes
TBR consumers of the API: mgiuca for chrome/browser/ui/app_list/start_page_service.cc achuith for chrome/browser/chromeos/login/ui/webui_login_view.cc
3 years, 9 months ago (2017-02-27 06:01:18 UTC) #19
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/2706813004/20001
3 years, 9 months ago (2017-02-27 06:02:21 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 07:46:46 UTC) #26
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/1417353d43fb4bed6a21dc62edc3...

Powered by Google App Engine
This is Rietveld 408576698