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

Issue 2380793002: Migrate MediaDevices.enumerateDevices to Mojo (Closed)

Created:
4 years, 2 months ago by Guido Urdaneta
Modified:
4 years, 2 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, dcheng, feature-media-reviews_chromium.org, hta - Chromium, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate MediaDevices.enumerateDevices to Mojo Note that Mojo is not called directly from Blink because device enumerations must also be called by content::PepperMediaDeviceManager. The Pepper work will come in a follow-up CL. BUG=648183 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/9357cc53ac0d187d3020a8dab9596f1e67db5abe Cr-Commit-Position: refs/heads/master@{#424517}

Patch Set 1 : add missing file #

Total comments: 12

Patch Set 2 : rebase, hta@ comments, fix tests, histograms.xml #

Total comments: 5

Patch Set 3 : address alexmos@ comments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+871 lines, -317 lines) Patch
M content/browser/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/bad_message.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 chunks +25 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/media_devices_dispatcher_host.h View 1 1 chunk +120 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/media_devices_dispatcher_host.cc View 1 1 chunk +226 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/media_devices_dispatcher_host_unittest.cc View 1 1 chunk +255 lines, -0 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M content/common/media/OWNERS View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/media/media_devices.h View 1 2 chunks +4 lines, -1 line 0 comments Download
A content/common/media/media_devices.mojom View 1 1 chunk +27 lines, -0 lines 0 comments Download
A content/common/media/media_devices.typemap View 1 chunk +14 lines, -0 lines 0 comments Download
A content/common/media/media_devices_param_traits.h View 1 chunk +21 lines, -0 lines 0 comments Download
A + content/common/media/media_devices_param_traits.cc View 1 chunk +6 lines, -11 lines 0 comments Download
M content/common/typemaps.gni View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/mock_media_stream_dispatcher.cc View 1 1 chunk +1 line, -15 lines 0 comments Download
M content/renderer/media/user_media_client_impl.h View 1 6 chunks +15 lines, -12 lines 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 1 11 chunks +95 lines, -243 lines 0 comments Download
M content/renderer/media/user_media_client_impl_unittest.cc View 1 9 chunks +48 lines, -35 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (37 generated)
Guido Urdaneta
dcheng@: This is an IPC-to-mojo migration. Can you take a look at the general Mojo/IPC ...
4 years, 2 months ago (2016-09-28 18:04:17 UTC) #7
hta - Chromium
Probably too early to review, but I did some commentary anyway. What I understand seems ...
4 years, 2 months ago (2016-09-30 08:38:13 UTC) #21
Guido Urdaneta
mkwst@: Can you do a preliminary review of the mojo/IPC parts of this CL before ...
4 years, 2 months ago (2016-10-04 16:45:30 UTC) #23
Mike West
Looks like the right direction to me. Please let the functional owners sign off on ...
4 years, 2 months ago (2016-10-06 06:36:36 UTC) #24
Guido Urdaneta
https://codereview.chromium.org/2380793002/diff/60001/content/browser/renderer_host/media/media_devices_dispatcher_host.cc File content/browser/renderer_host/media/media_devices_dispatcher_host.cc (right): https://codereview.chromium.org/2380793002/diff/60001/content/browser/renderer_host/media/media_devices_dispatcher_host.cc#newcode91 content/browser/renderer_host/media/media_devices_dispatcher_host.cc:91: bad_message::MDDH_INVALID_DEVICE_TYPE); On 2016/09/30 08:38:12, hta - Chromium wrote: > ...
4 years, 2 months ago (2016-10-07 17:07:13 UTC) #27
Guido Urdaneta
alexmos@chromium.org: Please review changes in content/browser/frame_host tommi@chromium.org: Please review changes in content/common/media, content/renderer/media and content/browser/renderer_host/media ...
4 years, 2 months ago (2016-10-07 17:25:41 UTC) #30
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/2380793002/diff/120001/content/renderer/media/user_media_client_impl.cc File content/renderer/media/user_media_client_impl.cc (right): https://codereview.chromium.org/2380793002/diff/120001/content/renderer/media/user_media_client_impl.cc#newcode145 content/renderer/media/user_media_client_impl.cc:145: if (device_label.find("front") != std::string::npos) { is this behavior ...
4 years, 2 months ago (2016-10-07 19:59:40 UTC) #31
Guido Urdaneta
https://codereview.chromium.org/2380793002/diff/120001/content/renderer/media/user_media_client_impl.cc File content/renderer/media/user_media_client_impl.cc (right): https://codereview.chromium.org/2380793002/diff/120001/content/renderer/media/user_media_client_impl.cc#newcode145 content/renderer/media/user_media_client_impl.cc:145: if (device_label.find("front") != std::string::npos) { On 2016/10/07 19:59:40, tommi ...
4 years, 2 months ago (2016-10-08 10:09:56 UTC) #32
Guido Urdaneta
isherman@: please review histograms.xml
4 years, 2 months ago (2016-10-09 08:29:11 UTC) #35
dcheng
(drive-by) https://codereview.chromium.org/2380793002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2380793002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc#newcode2223 content/browser/frame_host/render_frame_host_impl.cc:2223: // BrowserMainLoop::GetInstance() may be null on unit tests. ...
4 years, 2 months ago (2016-10-10 17:51:53 UTC) #36
alexmos
https://codereview.chromium.org/2380793002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2380793002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc#newcode2233 content/browser/frame_host/render_frame_host_impl.cc:2233: base::Unretained(media_stream_manager), Can you please explain (and add a comment ...
4 years, 2 months ago (2016-10-10 17:56:13 UTC) #37
Guido Urdaneta
On 2016/10/10 17:51:53, dcheng wrote: > (drive-by) > > https://codereview.chromium.org/2380793002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc > File content/browser/frame_host/render_frame_host_impl.cc (right): > ...
4 years, 2 months ago (2016-10-10 18:01:05 UTC) #38
Guido Urdaneta
https://codereview.chromium.org/2380793002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2380793002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc#newcode2233 content/browser/frame_host/render_frame_host_impl.cc:2233: base::Unretained(media_stream_manager), On 2016/10/10 17:56:13, alexmos wrote: > Can you ...
4 years, 2 months ago (2016-10-10 18:34:42 UTC) #39
alexmos
Thanks, frame_host LGTM
4 years, 2 months ago (2016-10-10 20:51:03 UTC) #40
Ilya Sherman
histograms.xml lgtm
4 years, 2 months ago (2016-10-10 23:35:35 UTC) #41
Guido Urdaneta
mkwst@: functional owners have given approval. Please continue with the IPC/security review.
4 years, 2 months ago (2016-10-11 08:25:06 UTC) #42
Mike West
The port of the existing message LGTM.
4 years, 2 months ago (2016-10-11 08:34:41 UTC) #43
Guido Urdaneta
jochen@chromium.org: Can you rs top-level content/browser and content/common?
4 years, 2 months ago (2016-10-11 08:55:30 UTC) #45
Guido Urdaneta
avi@: Can you rs?
4 years, 2 months ago (2016-10-11 15:41:55 UTC) #47
Avi (use Gerrit)
lgtm stampity stamp
4 years, 2 months ago (2016-10-11 15:44:29 UTC) #48
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/2380793002/140001
4 years, 2 months ago (2016-10-11 15:45:23 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/84498)
4 years, 2 months ago (2016-10-11 15:47:50 UTC) #53
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/2380793002/160001
4 years, 2 months ago (2016-10-11 15:57:30 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/84511)
4 years, 2 months ago (2016-10-11 16:08:11 UTC) #58
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/2380793002/160001
4 years, 2 months ago (2016-10-11 19:01:07 UTC) #60
commit-bot: I haz the power
Committed patchset #4 (id:160001)
4 years, 2 months ago (2016-10-11 19:54:00 UTC) #62
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 19:56:01 UTC) #64
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9357cc53ac0d187d3020a8dab9596f1e67db5abe
Cr-Commit-Position: refs/heads/master@{#424517}

Powered by Google App Engine
This is Rietveld 408576698