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

Issue 2696443002: Reland of Use spec-compliant algorithm to select video devices in getUserMedia. (Closed)

Created:
3 years, 10 months ago by Guido Urdaneta
Modified:
3 years, 10 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, imcheng+watch_chromium.org, feature-media-reviews_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, nasko+codewatch_chromium.org, jam, extensions-reviews_chromium.org, avayvod+watch_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, jasonroberts+watch_google.com, chromium-apps-reviews_chromium.org, xjz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of Use spec-compliant algorithm to select video devices in getUserMedia. (patchset #1 id:1 of https://codereview.chromium.org/2684233005/ ) Reason for revert: Start reland CL (without submitting to CQ) Original issue's description: > Revert of Use spec-compliant algorithm to select video devices in getUserMedia. (patchset #2 id:80001 of https://codereview.chromium.org/2669243004/ ) > > Reason for revert: > Broke org.chromium.android_webview.test.MediaAccessPermissionRequestTest https://crbug.com/690626 > > Original issue's description: > > Use spec-compliant algorithm to select video devices in getUserMedia. > > > > BUG=657733 > > > > Review-Url: https://codereview.chromium.org/2669243004 > > Cr-Commit-Position: refs/heads/master@{#448981} > > Committed: https://chromium.googlesource.com/chromium/src/+/9ea409c2a23810063bb280304e18b48dc6b0fe7e > > TBR=mek@chromium.org,tommi@chromium.org,kinuko@chromium.org,guidou@chromium.org > # Not skipping CQ checks because original CL landed more than 1 days ago. > BUG=657733 > > Review-Url: https://codereview.chromium.org/2684233005 > Cr-Commit-Position: refs/heads/master@{#449605} > Committed: https://chromium.googlesource.com/chromium/src/+/7e9684dde3d74662e43ec427afd9ab55c8d6138d In addition to the original patch, make the failing test use fake media devices to ensure that there is always at least one device of each kind. Without devices, the spec-compliant getUserMedia() will fail without asking for permission, which is most likely the reason the test started to fail. TBR=mek@chromium.org,tommi@chromium.org,kinuko@chromium.org,perezju@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=657733, 690626 Review-Url: https://codereview.chromium.org/2696443002 Cr-Commit-Position: refs/heads/master@{#450026} Committed: https://chromium.googlesource.com/chromium/src/+/28a46c315b7a01905c6509ec51b572cb89209a50

Patch Set 1 : original patchset #

Patch Set 2 : Make webview test use fake devices #

Total comments: 2

Patch Set 3 : Address boliu's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -123 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/MediaAccessPermissionRequestTest.java View 1 5 chunks +6 lines, -0 lines 0 comments Download
M content/browser/webrtc/webrtc_getusermedia_browsertest.cc View 1 2 chunks +9 lines, -5 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/common/ContentSwitches.java View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_dispatcher.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher_unittest.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/media/mock_media_stream_dispatcher.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/mock_media_stream_dispatcher.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/user_media_client_impl.h View 1 4 chunks +35 lines, -6 lines 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 1 7 chunks +128 lines, -51 lines 0 comments Download
M content/renderer/media/user_media_client_impl_unittest.cc View 1 8 chunks +88 lines, -46 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M extensions/browser/guest_view/app_view/app_view_apitest.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (12 generated)
Guido Urdaneta
Created Reland of Use spec-compliant algorithm to select video devices in getUserMedia.
3 years, 10 months ago (2017-02-11 13:52:56 UTC) #1
Guido Urdaneta
boliu@chromium.org: Please review changes in android_webview/ and content/public/android/
3 years, 10 months ago (2017-02-11 22:19:29 UTC) #8
tommi (sloooow) - chröme
lgtm
3 years, 10 months ago (2017-02-11 23:20:04 UTC) #9
boliu
https://codereview.chromium.org/2696443002/diff/180001/content/public/android/java/src/org/chromium/content/common/ContentSwitches.java File content/public/android/java/src/org/chromium/content/common/ContentSwitches.java (right): https://codereview.chromium.org/2696443002/diff/180001/content/public/android/java/src/org/chromium/content/common/ContentSwitches.java#newcode77 content/public/android/java/src/org/chromium/content/common/ContentSwitches.java:77: // Enable content intent detection in the renderer fix ...
3 years, 10 months ago (2017-02-13 16:54:15 UTC) #11
Guido Urdaneta
https://codereview.chromium.org/2696443002/diff/180001/content/public/android/java/src/org/chromium/content/common/ContentSwitches.java File content/public/android/java/src/org/chromium/content/common/ContentSwitches.java (right): https://codereview.chromium.org/2696443002/diff/180001/content/public/android/java/src/org/chromium/content/common/ContentSwitches.java#newcode77 content/public/android/java/src/org/chromium/content/common/ContentSwitches.java:77: // Enable content intent detection in the renderer On ...
3 years, 10 months ago (2017-02-13 17:38:59 UTC) #13
boliu
lgtm
3 years, 10 months ago (2017-02-13 17:40:27 UTC) #14
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/2696443002/220001
3 years, 10 months ago (2017-02-13 17:41:51 UTC) #17
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 18:38:58 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/28a46c315b7a01905c6509ec51b5...

Powered by Google App Engine
This is Rietveld 408576698