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

Issue 88283002: Reland review 34393006: Refactor MediaStreamManager to not output real device id. (Closed)

Created:
7 years ago by perkj_chrome
Modified:
7 years 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

Reland review 34393006: Refactor MediaStreamManager to not output real device id. https://src.chromium.org/viewvc/chrome?revision=232766&view=revision Refactor MediaStreamManager to never output physical device ids. It now output sourceId in the form of a HMAC. DeviceMessageFilter now don't need to create a source id. This also fix a bug that made the source ids useless unless you have called gum once. Note that the sourceIds are still just using the security origin as salt. Next step is to add a random number that is stored in the profile. BUG=269139, 313192 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237825

Patch Set 1 #

Patch Set 2 : Changes since the revert. #

Total comments: 56

Patch Set 3 : Addressed review comments. #

Patch Set 4 : nits #

Total comments: 6

Patch Set 5 : Readded comment that was removed by mistake. #

Patch Set 6 : Make sure devices are not enumerated unless there is a valid security origin. #

Total comments: 16

Patch Set 7 : Addressed review comments. #

Total comments: 2

Patch Set 8 : Adding crbug for removing dependency on global state. #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+769 lines, -394 lines) Patch
M chrome/browser/policy/policy_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/device_request_message_filter.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/device_request_message_filter.cc View 3 chunks +2 lines, -20 lines 0 comments Download
M content/browser/renderer_host/media/device_request_message_filter_unittest.cc View 3 chunks +0 lines, -48 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -6 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc View 1 2 3 20 chunks +308 lines, -60 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 2 6 chunks +48 lines, -25 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 4 5 6 29 chunks +361 lines, -198 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/media_stream_ui_proxy.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/public/common/media_stream_request.h View 2 chunks +0 lines, -4 lines 0 comments Download
M content/public/common/media_stream_request.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -7 lines 0 comments Download
M content/renderer/media/mock_media_stream_dispatcher.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M media/audio/mock_audio_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/mock_audio_manager.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M media/video/capture/fake_video_capture_device.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M media/video/capture/fake_video_capture_device.cc View 1 2 3 4 5 6 4 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
perkj_chrome
Hej Can you please review? It it probably best to review the whole cl again ...
7 years ago (2013-11-26 13:58:37 UTC) #1
tommi (sloooow) - chröme
https://codereview.chromium.org/88283002/diff/60001/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/88283002/diff/60001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc#newcode163 content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc:163: label_ = ""; do you want to dcheck/expect_eq first ...
7 years ago (2013-11-26 14:44:21 UTC) #2
tommi (sloooow) - chröme
https://codereview.chromium.org/88283002/diff/60001/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/88283002/diff/60001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc#newcode328 content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc:328: return found_device; On 2013/11/26 14:44:21, tommi wrote: > does ...
7 years ago (2013-11-26 14:46:46 UTC) #3
perkj_chrome
PTAL joi, can you take a look at the content/public thinks again? You are welcome ...
7 years ago (2013-11-27 13:41:34 UTC) #4
Jói
//content/public LGTM apart from one question on a removed comment. I skimmed the rest of ...
7 years ago (2013-11-27 13:52:00 UTC) #5
perkj_chrome
https://codereview.chromium.org/88283002/diff/100001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (left): https://codereview.chromium.org/88283002/diff/100001/content/browser/renderer_host/media/media_stream_manager.cc#oldcode66 content/browser/renderer_host/media/media_stream_manager.cc:66: // TODO(xians): Merge DeviceRequest with MediaStreamRequest. On 2013/11/27 13:52:00, ...
7 years ago (2013-11-27 14:10:00 UTC) #6
Jói
OK, thanks for checking. LGTM for //content/public and no other comments on the rest. On ...
7 years ago (2013-11-27 14:11:49 UTC) #7
perkj_chrome
bartfab, can you please help me with policy_browsertest again? tommi, xians a not so loud ...
7 years ago (2013-11-27 17:34:10 UTC) #8
tommi (sloooow) - chröme
https://codereview.chromium.org/88283002/diff/140001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/88283002/diff/140001/content/browser/renderer_host/media/media_stream_manager.cc#newcode223 content/browser/renderer_host/media/media_stream_manager.cc:223: // been stopped. thanks! https://codereview.chromium.org/88283002/diff/140001/content/browser/renderer_host/media/media_stream_manager.cc#newcode264 content/browser/renderer_host/media/media_stream_manager.cc:264: // been stopped. ...
7 years ago (2013-11-27 22:09:42 UTC) #9
perkj_chrome
PTAL https://codereview.chromium.org/88283002/diff/140001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/88283002/diff/140001/content/browser/renderer_host/media/media_stream_manager.cc#newcode223 content/browser/renderer_host/media/media_stream_manager.cc:223: // been stopped. On 2013/11/27 22:09:43, tommi wrote: ...
7 years ago (2013-11-28 09:46:43 UTC) #10
no longer working on chromium
I have to defer this to Tommi and Joi. :D
7 years ago (2013-11-28 10:32:51 UTC) #11
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/88283002/diff/210001/media/video/capture/fake_video_capture_device.h File media/video/capture/fake_video_capture_device.h (right): https://codereview.chromium.org/88283002/diff/210001/media/video/capture/fake_video_capture_device.h#newcode72 media/video/capture/fake_video_capture_device.h:72: static base::subtle::Atomic32 number_of_devices_; can you add a todo ...
7 years ago (2013-11-28 12:24:44 UTC) #12
bartfab (slow)
policy_browsertest.cc lgtm
7 years ago (2013-11-28 12:26:49 UTC) #13
perkj_chrome
https://codereview.chromium.org/88283002/diff/210001/media/video/capture/fake_video_capture_device.h File media/video/capture/fake_video_capture_device.h (right): https://codereview.chromium.org/88283002/diff/210001/media/video/capture/fake_video_capture_device.h#newcode72 media/video/capture/fake_video_capture_device.h:72: static base::subtle::Atomic32 number_of_devices_; On 2013/11/28 12:24:45, tommi wrote: > ...
7 years ago (2013-11-28 13:40:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/88283002/230001
7 years ago (2013-11-28 13:41:17 UTC) #15
commit-bot: I haz the power
Failed to apply patch for content/renderer/media/media_stream_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years ago (2013-11-28 13:41:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/88283002/270001
7 years ago (2013-11-28 15:53:32 UTC) #17
commit-bot: I haz the power
7 years ago (2013-11-28 19:58:35 UTC) #18
Message was sent while issue was closed.
Change committed as 237825

Powered by Google App Engine
This is Rietveld 408576698