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

Issue 2728573002: Hoist device logic out of permissions check in MediaStreamDevicesController (Closed)

Created:
3 years, 9 months ago by raymes
Modified:
3 years, 9 months ago
Reviewers:
Timothy Loh
CC:
chromium-reviews, chfremer+watch_chromium.org, mcasas+watch+vc_chromium.org, feature-media-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hoist device logic out of permissions check in MediaStreamDevicesController Currently the logic to check whether devices are available for a WebRTC request is nested between various permissions checks. This CL hoists that logic out such that it occurs before any other permission checks occur. BUG=596786 Review-Url: https://codereview.chromium.org/2728573002 Cr-Commit-Position: refs/heads/master@{#455627} Committed: https://chromium.googlesource.com/chromium/src/+/c5ea96944724669ccfd65035a89a434f1fbe27cf

Patch Set 1 #

Total comments: 2

Patch Set 2 : Hoist device logic out of permissions check in MediaStreamDevicesController #

Patch Set 3 : Hoist device logic out of permissions check in MediaStreamDevicesController #

Total comments: 2

Patch Set 4 : Hoist device logic out of permissions check in MediaStreamDevicesController #

Patch Set 5 : Hoist device logic out of permissions check in MediaStreamDevicesController #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -77 lines) Patch
M chrome/browser/media/webrtc/media_permission.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/media/webrtc/media_permission.cc View 1 2 3 1 chunk +0 lines, -42 lines 0 comments Download
M chrome/browser/media/webrtc/media_stream_devices_controller.h View 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/media/webrtc/media_stream_devices_controller.cc View 1 2 3 4 4 chunks +124 lines, -28 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
raymes
3 years, 9 months ago (2017-03-01 04:17:34 UTC) #2
Timothy Loh
https://codereview.chromium.org/2728573002/diff/1/chrome/browser/media/webrtc/media_stream_devices_controller.cc File chrome/browser/media/webrtc/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2728573002/diff/1/chrome/browser/media/webrtc/media_stream_devices_controller.cc#newcode422 chrome/browser/media/webrtc/media_stream_devices_controller.cc:422: !ContentTypeIsRequested(CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, Is this supposed to be HasAvailableDevices?
3 years, 9 months ago (2017-03-02 00:55:58 UTC) #3
raymes
https://codereview.chromium.org/2728573002/diff/1/chrome/browser/media/webrtc/media_stream_devices_controller.cc File chrome/browser/media/webrtc/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2728573002/diff/1/chrome/browser/media/webrtc/media_stream_devices_controller.cc#newcode422 chrome/browser/media/webrtc/media_stream_devices_controller.cc:422: !ContentTypeIsRequested(CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, On 2017/03/02 00:55:58, Timothy Loh wrote: > Is ...
3 years, 9 months ago (2017-03-02 01:48:53 UTC) #4
Timothy Loh
lgtm https://codereview.chromium.org/2728573002/diff/40001/chrome/browser/media/webrtc/media_stream_devices_controller.cc File chrome/browser/media/webrtc/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2728573002/diff/40001/chrome/browser/media/webrtc/media_stream_devices_controller.cc#newcode225 chrome/browser/media/webrtc/media_stream_devices_controller.cc:225: bool audio_blocked() const { return audio_blocked_; } Could ...
3 years, 9 months ago (2017-03-03 03:29:02 UTC) #5
raymes
https://codereview.chromium.org/2728573002/diff/40001/chrome/browser/media/webrtc/media_stream_devices_controller.cc File chrome/browser/media/webrtc/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2728573002/diff/40001/chrome/browser/media/webrtc/media_stream_devices_controller.cc#newcode225 chrome/browser/media/webrtc/media_stream_devices_controller.cc:225: bool audio_blocked() const { return audio_blocked_; } On 2017/03/03 ...
3 years, 9 months ago (2017-03-07 02:09:25 UTC) #6
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/2728573002/60001
3 years, 9 months ago (2017-03-07 02:11:29 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/245286) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 9 months ago (2017-03-07 02:55:31 UTC) #11
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/2728573002/80001
3 years, 9 months ago (2017-03-07 04:31:14 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/395595)
3 years, 9 months ago (2017-03-07 06:59:09 UTC) #16
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/2728573002/80001
3 years, 9 months ago (2017-03-08 04:30:10 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/380370)
3 years, 9 months ago (2017-03-08 04:34:17 UTC) #20
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/2728573002/80001
3 years, 9 months ago (2017-03-08 23:52:36 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 01:39:40 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/c5ea96944724669ccfd65035a89a...

Powered by Google App Engine
This is Rietveld 408576698