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

Issue 180633008: Add different error codes for getUserMedia. (Closed)

Created:
6 years, 9 months ago by Tommy Widenflycht
Modified:
6 years, 9 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Add different error codes for getUserMedia. The spec now says that the error name is UA specific so I have now Implemented a few different ones. This patch is depending on a Blink Patch. BUG=132812 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257081

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed comments #

Total comments: 6

Patch Set 3 : Fixed comments #

Patch Set 4 : cleanup #

Total comments: 8

Patch Set 5 : Fixed comments and compilation #

Patch Set 6 : Fixed tests #

Patch Set 7 : Android fix #

Patch Set 8 : Android #

Patch Set 9 : Fixes #

Total comments: 10

Patch Set 10 : Fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -123 lines) Patch
M chrome/browser/media/media_capture_devices_dispatcher.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.cc View 1 2 3 4 5 6 7 10 chunks +22 lines, -9 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/media_stream_devices_controller.cc View 1 2 3 4 5 6 7 8 7 chunks +17 lines, -11 lines 0 comments Download
M chrome/browser/media/media_stream_infobar_delegate.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/media/webrtc_browsertest_base.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media/webrtc_browsertest_base.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webrtc/getusermedia.js View 1 2 3 4 5 2 chunks +0 lines, -6 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/device_request_message_filter.h View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.h View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.cc View 1 2 1 chunk +8 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +31 lines, -10 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 4 5 6 7 8 9 9 chunks +26 lines, -14 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_requester.h View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_ui_proxy.h View 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_ui_proxy.cc View 1 2 3 4 6 chunks +14 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc View 1 2 3 5 chunks +10 lines, -9 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -3 lines 0 comments Download
M content/common/media/media_stream_messages.h View 2 chunks +6 lines, -2 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/public/common/media_stream_request.h View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M content/public/common/media_stream_request.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory_unittest.cc View 1 2 3 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_dispatcher.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher_eventhandler.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_dispatcher_unittest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_impl.h View 6 7 8 4 chunks +7 lines, -4 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 5 6 7 8 9 5 chunks +52 lines, -13 lines 0 comments Download
M content/renderer/media/media_stream_impl_unittest.cc View 1 2 3 4 3 chunks +7 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_media_device_manager.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_media_device_manager.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 54 (0 generated)
Tommy Widenflycht
6 years, 9 months ago (2014-03-03 16:12:44 UTC) #1
perkj_chrome
Nice https://codereview.chromium.org/180633008/diff/1/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): https://codereview.chromium.org/180633008/diff/1/content/renderer/media/media_stream_impl.cc#newcode586 content/renderer/media/media_stream_impl.cc:586: request_info->requestFailedUASpecific("PermissionDismissedError"); Should these strings ever be localized? https://codereview.chromium.org/180633008/diff/1/content/renderer/media/media_stream_impl.cc#newcode912 ...
6 years, 9 months ago (2014-03-04 07:27:53 UTC) #2
Tommy Widenflycht
https://codereview.chromium.org/180633008/diff/1/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): https://codereview.chromium.org/180633008/diff/1/content/renderer/media/media_stream_impl.cc#newcode586 content/renderer/media/media_stream_impl.cc:586: request_info->requestFailedUASpecific("PermissionDismissedError"); On 2014/03/04 07:27:54, perkj wrote: > Should these ...
6 years, 9 months ago (2014-03-04 09:59:32 UTC) #3
perkj_chrome
lgtm
6 years, 9 months ago (2014-03-04 13:35:52 UTC) #4
Tommy Widenflycht
On 2014/03/04 13:35:52, perkj wrote: > lgtm vrk@ I need your OWNERS approval.
6 years, 9 months ago (2014-03-05 07:49:56 UTC) #5
Tommy Widenflycht
6 years, 9 months ago (2014-03-05 10:05:46 UTC) #6
tommi (sloooow) - chröme
nice. lgtm!
6 years, 9 months ago (2014-03-05 14:11:27 UTC) #7
Tommy Widenflycht
The CQ bit was checked by tommyw@chromium.org
6 years, 9 months ago (2014-03-05 14:17:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommyw@chromium.org/180633008/20001
6 years, 9 months ago (2014-03-05 14:18:09 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 14:30:54 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-05 14:30:54 UTC) #11
Tommy Widenflycht
yzshen@: Need OWNERS approval for content/renderer/pepper/ tsepez@: Need OWNERS approval for content/public/common/ joi@: Need OWNERS ...
6 years, 9 months ago (2014-03-06 08:44:03 UTC) #12
Jói
//content/public LGTM.
6 years, 9 months ago (2014-03-06 13:01:05 UTC) #13
sky
LGTM
6 years, 9 months ago (2014-03-06 16:44:48 UTC) #14
Tom Sepez
Messages LGTM but a few drive-by comments. https://codereview.chromium.org/180633008/diff/20001/content/browser/renderer_host/media/media_stream_dispatcher_host.cc File content/browser/renderer_host/media/media_stream_dispatcher_host.cc (right): https://codereview.chromium.org/180633008/diff/20001/content/browser/renderer_host/media/media_stream_dispatcher_host.cc#newcode45 content/browser/renderer_host/media/media_stream_dispatcher_host.cc:45: << ", ...
6 years, 9 months ago (2014-03-06 18:36:25 UTC) #15
Tommy Widenflycht
https://codereview.chromium.org/180633008/diff/20001/content/browser/renderer_host/media/media_stream_dispatcher_host.cc File content/browser/renderer_host/media/media_stream_dispatcher_host.cc (right): https://codereview.chromium.org/180633008/diff/20001/content/browser/renderer_host/media/media_stream_dispatcher_host.cc#newcode45 content/browser/renderer_host/media/media_stream_dispatcher_host.cc:45: << ", {page_request_id = " << page_request_id << "})"; ...
6 years, 9 months ago (2014-03-07 11:50:04 UTC) #16
perkj_chrome
SLGTM if the below nits are addressed. https://codereview.chromium.org/180633008/diff/60001/content/browser/renderer_host/media/media_stream_ui_proxy.cc File content/browser/renderer_host/media/media_stream_ui_proxy.cc (right): https://codereview.chromium.org/180633008/diff/60001/content/browser/renderer_host/media/media_stream_ui_proxy.cc#newcode222 content/browser/renderer_host/media/media_stream_ui_proxy.cc:222: MEDIA_DEVICE_NO_HARDWARE : ...
6 years, 9 months ago (2014-03-07 12:46:22 UTC) #17
Tommy Widenflycht
https://codereview.chromium.org/180633008/diff/60001/content/browser/renderer_host/media/media_stream_ui_proxy.cc File content/browser/renderer_host/media/media_stream_ui_proxy.cc (right): https://codereview.chromium.org/180633008/diff/60001/content/browser/renderer_host/media/media_stream_ui_proxy.cc#newcode222 content/browser/renderer_host/media/media_stream_ui_proxy.cc:222: MEDIA_DEVICE_NO_HARDWARE : On 2014/03/07 12:46:22, perkj wrote: > 4-space ...
6 years, 9 months ago (2014-03-07 14:37:08 UTC) #18
yzshen1
(Sorry for late reply) .*pepper.* LGTM
6 years, 9 months ago (2014-03-10 22:02:04 UTC) #19
Tommy Widenflycht
The CQ bit was checked by tommyw@chromium.org
6 years, 9 months ago (2014-03-11 07:29:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommyw@chromium.org/180633008/70001
6 years, 9 months ago (2014-03-11 07:31:39 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-11 07:38:00 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel, mac_chromium_rel
6 years, 9 months ago (2014-03-11 07:38:01 UTC) #23
Tommy Widenflycht
The CQ bit was unchecked by tommyw@chromium.org
6 years, 9 months ago (2014-03-11 08:42:43 UTC) #24
Tommy Widenflycht
The CQ bit was checked by tommyw@chromium.org
6 years, 9 months ago (2014-03-11 08:42:44 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommyw@chromium.org/180633008/70001
6 years, 9 months ago (2014-03-11 08:44:04 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-11 09:42:37 UTC) #27
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=122582
6 years, 9 months ago (2014-03-11 09:42:38 UTC) #28
Tommy Widenflycht
The CQ bit was checked by tommyw@chromium.org
6 years, 9 months ago (2014-03-12 12:29:23 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommyw@chromium.org/180633008/90001
6 years, 9 months ago (2014-03-12 12:29:25 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 13:41:55 UTC) #31
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=160053
6 years, 9 months ago (2014-03-12 13:41:56 UTC) #32
Tommy Widenflycht
The CQ bit was checked by tommyw@chromium.org
6 years, 9 months ago (2014-03-12 13:54:45 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommyw@chromium.org/180633008/110001
6 years, 9 months ago (2014-03-12 13:55:43 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 14:48:49 UTC) #35
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=160072
6 years, 9 months ago (2014-03-12 14:48:50 UTC) #36
Tommy Widenflycht
The CQ bit was checked by tommyw@chromium.org
6 years, 9 months ago (2014-03-12 15:29:20 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommyw@chromium.org/180633008/130001
6 years, 9 months ago (2014-03-12 15:31:13 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommyw@chromium.org/180633008/130001
6 years, 9 months ago (2014-03-12 16:59:03 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 17:24:39 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-12 17:24:40 UTC) #41
Tommy Widenflycht
The CQ bit was checked by tommyw@chromium.org
6 years, 9 months ago (2014-03-13 09:32:45 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommyw@chromium.org/180633008/130001
6 years, 9 months ago (2014-03-13 09:32:59 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 11:01:56 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 9 months ago (2014-03-13 11:01:58 UTC) #45
tommi (sloooow) - chröme
lgtm % style issues https://codereview.chromium.org/180633008/diff/150001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc File content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/180633008/diff/150001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc#newcode412 content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc:412: kRenderId, fix indent https://codereview.chromium.org/180633008/diff/150001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc#newcode641 content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc:641: ...
6 years, 9 months ago (2014-03-13 14:18:04 UTC) #46
Tommy Widenflycht
https://codereview.chromium.org/180633008/diff/150001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc File content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/180633008/diff/150001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc#newcode412 content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc:412: kRenderId, On 2014/03/13 14:18:05, tommi wrote: > fix indent ...
6 years, 9 months ago (2014-03-13 15:43:49 UTC) #47
Tommy Widenflycht
The CQ bit was checked by tommyw@chromium.org
6 years, 9 months ago (2014-03-13 17:37:04 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommyw@chromium.org/180633008/160001
6 years, 9 months ago (2014-03-13 17:39:51 UTC) #49
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 23:37:29 UTC) #50
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=281604
6 years, 9 months ago (2014-03-13 23:37:30 UTC) #51
Tommy Widenflycht
The CQ bit was checked by tommyw@chromium.org
6 years, 9 months ago (2014-03-14 08:27:29 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommyw@chromium.org/180633008/160001
6 years, 9 months ago (2014-03-14 08:27:38 UTC) #53
commit-bot: I haz the power
6 years, 9 months ago (2014-03-14 11:52:42 UTC) #54
Message was sent while issue was closed.
Change committed as 257081

Powered by Google App Engine
This is Rietveld 408576698