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

Issue 2629383002: Add functionality to get default media device IDs from user preferences. (Closed)

Created:
3 years, 11 months ago by Guido Urdaneta
Modified:
3 years, 11 months ago
CC:
chromium-reviews, creis+watch_chromium.org, chfremer+watch_chromium.org, nasko+codewatch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add functionality to get default media device from user preferences. The motivation for this is that constraint algorithms for getUserMedia and related functions need this information. The existing mechanism to get the default device (requesting permission) is insufficient as some algorithms, such as device selection, need this information before requesting permission. The WebContentsDelegate::GetDefaultMediaDeviceID is used in follow-up CL https://codereview.chromium.org/2629383002/. BUG=623104 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2629383002 Cr-Commit-Position: refs/heads/master@{#445692} Committed: https://chromium.googlesource.com/chromium/src/+/52a3de796ac586a2ab7d6123663b01415e34966f

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments from reviewers #

Patch Set 3 : Roll back changes to content/browser #

Patch Set 4 : Rename MediaDeviceId -> MediaDeviceID for consistency with other code #

Patch Set 5 : rebase #

Total comments: 6

Patch Set 6 : address pkasting@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -0 lines) Patch
M chrome/browser/media/webrtc/media_capture_devices_dispatcher.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc/media_capture_devices_dispatcher.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 35 (18 generated)
Guido Urdaneta
tommi@chromium.org: Please review changes in chrome/browser/media/webrtc pkasting@chromium.org: Please review changes in chrome/browser/ui clamy@chromium.org: Please review ...
3 years, 11 months ago (2017-01-13 14:18:52 UTC) #3
tommi (sloooow) - chröme
lgtm
3 years, 11 months ago (2017-01-13 15:03:24 UTC) #5
clamy
Sorry I didn't have time to look at this today. Will do a review on ...
3 years, 11 months ago (2017-01-13 17:45:11 UTC) #6
clamy
Thanks! The code in content/ looks good, but I'm concerned that none of the functions ...
3 years, 11 months ago (2017-01-16 12:48:09 UTC) #7
Peter Kasting
LGTM, but I'm not in love with the code organization. Browser is kind of a ...
3 years, 11 months ago (2017-01-17 21:02:46 UTC) #8
Guido Urdaneta
https://codereview.chromium.org/2629383002/diff/1/chrome/browser/media/webrtc/media_capture_devices_dispatcher.cc File chrome/browser/media/webrtc/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/2629383002/diff/1/chrome/browser/media/webrtc/media_capture_devices_dispatcher.cc#newcode244 chrome/browser/media/webrtc/media_capture_devices_dispatcher.cc:244: else if (type == content::MEDIA_DEVICE_VIDEO_CAPTURE) On 2017/01/17 21:02:46, Peter ...
3 years, 11 months ago (2017-01-18 15:03:59 UTC) #9
Guido Urdaneta
On 2017/01/17 21:02:46, Peter Kasting wrote: > LGTM, but I'm not in love with the ...
3 years, 11 months ago (2017-01-18 15:13:47 UTC) #12
clamy
Thanks! https://codereview.chromium.org/2629383002/diff/1/content/browser/frame_host/render_frame_host_delegate.h File content/browser/frame_host/render_frame_host_delegate.h (right): https://codereview.chromium.org/2629383002/diff/1/content/browser/frame_host/render_frame_host_delegate.h#newcode164 content/browser/frame_host/render_frame_host_delegate.h:164: virtual std::string GetDefaultMediaDeviceId(MediaStreamType type); On 2017/01/18 15:03:59, Guido ...
3 years, 11 months ago (2017-01-18 15:15:50 UTC) #13
Guido Urdaneta
On 2017/01/18 15:15:50, clamy wrote: > Thanks! > > https://codereview.chromium.org/2629383002/diff/1/content/browser/frame_host/render_frame_host_delegate.h > File content/browser/frame_host/render_frame_host_delegate.h (right): > ...
3 years, 11 months ago (2017-01-18 15:44:40 UTC) #14
Guido Urdaneta
clamy@: rolled back the changes in content/browser. All the code is exercised by the test. ...
3 years, 11 months ago (2017-01-18 15:51:42 UTC) #15
clamy
Thanks! If you have the upcoming CL link, can you link to it in the ...
3 years, 11 months ago (2017-01-18 15:56:45 UTC) #18
Guido Urdaneta
clammy@: modified the description to include a link to the follow-up CL. pkasting@: incorporated some ...
3 years, 11 months ago (2017-01-19 19:28:57 UTC) #22
clamy
Thanks! Lgtm.
3 years, 11 months ago (2017-01-23 15:47:51 UTC) #23
Peter Kasting
c/b/ui LGTM https://codereview.chromium.org/2629383002/diff/80001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/2629383002/diff/80001/chrome/browser/ui/browser_browsertest.cc#newcode2759 chrome/browser/ui/browser_browsertest.cc:2759: std::string default_audio_capture_1("test_default_audio_capture"); Nit: Prefer = to () ...
3 years, 11 months ago (2017-01-24 00:39:17 UTC) #28
Guido Urdaneta
https://codereview.chromium.org/2629383002/diff/80001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/2629383002/diff/80001/chrome/browser/ui/browser_browsertest.cc#newcode2759 chrome/browser/ui/browser_browsertest.cc:2759: std::string default_audio_capture_1("test_default_audio_capture"); On 2017/01/24 00:39:17, Peter Kasting wrote: > ...
3 years, 11 months ago (2017-01-24 09:31:35 UTC) #29
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/2629383002/100001
3 years, 11 months ago (2017-01-24 09:32:34 UTC) #32
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 10:38:08 UTC) #35
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/52a3de796ac586a2ab7d6123663b...

Powered by Google App Engine
This is Rietveld 408576698