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

Issue 1369723003: Do not hash default and communications media device ID (Closed)

Created:
5 years, 2 months ago by Guido Urdaneta
Modified:
5 years, 2 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not hash default and communications media device ID BUG=535980 Committed: https://crrev.com/9a60f773372afb2625253e8d7632c7036b33086b Cr-Commit-Position: refs/heads/master@{#351132}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix nit #

Patch Set 3 : Move hash implementation to MediaStreamManager #

Patch Set 4 : Make MediaStreamManager use its own implementations of device ID methods #

Patch Set 5 : Add unit test #

Patch Set 6 : Fix format #

Total comments: 2

Patch Set 7 : Tommi's comments #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -32 lines) Patch
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 chunk +4 lines, -1 line 5 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 7 chunks +45 lines, -12 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +46 lines, -0 lines 0 comments Download
M content/public/browser/media_device_id.cc View 1 2 1 chunk +4 lines, -19 lines 0 comments Download

Messages

Total messages: 31 (9 generated)
Guido Urdaneta
Hi, PTAL
5 years, 2 months ago (2015-09-25 19:34:49 UTC) #2
Guido Urdaneta
jochen@chromium.org: Please review changes in content/public
5 years, 2 months ago (2015-09-25 19:44:58 UTC) #4
tommi (sloooow) - chröme
https://codereview.chromium.org/1369723003/diff/1/content/public/browser/media_device_id.cc File content/public/browser/media_device_id.cc (right): https://codereview.chromium.org/1369723003/diff/1/content/public/browser/media_device_id.cc#newcode17 content/public/browser/media_device_id.cc:17: const char kDefaultDeviceId[] = "default"; Can we use the ...
5 years, 2 months ago (2015-09-26 09:27:24 UTC) #5
charlieloveeric3
Learning Mercurial in Workflows prepare Mercurial As a first step, you should teach your Mercurial ...
5 years, 2 months ago (2015-09-26 09:46:47 UTC) #7
Guido Urdaneta
https://codereview.chromium.org/1369723003/diff/1/content/public/browser/media_device_id.cc File content/public/browser/media_device_id.cc (right): https://codereview.chromium.org/1369723003/diff/1/content/public/browser/media_device_id.cc#newcode17 content/public/browser/media_device_id.cc:17: const char kDefaultDeviceId[] = "default"; On 2015/09/26 09:27:23, tommi ...
5 years, 2 months ago (2015-09-26 09:48:59 UTC) #9
tommi (sloooow) - chröme
https://codereview.chromium.org/1369723003/diff/1/content/public/browser/media_device_id.cc File content/public/browser/media_device_id.cc (right): https://codereview.chromium.org/1369723003/diff/1/content/public/browser/media_device_id.cc#newcode17 content/public/browser/media_device_id.cc:17: const char kDefaultDeviceId[] = "default"; On 2015/09/26 09:48:58, Guido ...
5 years, 2 months ago (2015-09-26 10:13:47 UTC) #10
Guido Urdaneta
What about this approach? We still need the wrappers in content/public because extensions use these ...
5 years, 2 months ago (2015-09-26 11:35:55 UTC) #11
tommi (sloooow) - chröme
great. this works :) lgtm.
5 years, 2 months ago (2015-09-26 12:00:30 UTC) #12
henrik.kjellander
Testing commenting and removing tommi@ as reviewer (see https://crbug.com/536695 for details).
5 years, 2 months ago (2015-09-28 09:01:53 UTC) #14
henrik.kjellander
On 2015/09/28 09:01:53, henrik.kjellander wrote: > Testing commenting and removing tommi@ as reviewer (see https://crbug.com/536695 ...
5 years, 2 months ago (2015-09-28 09:02:27 UTC) #15
jochen (gone - plz use gerrit)
what about tests?
5 years, 2 months ago (2015-09-28 11:36:38 UTC) #17
Guido Urdaneta
Added tests.
5 years, 2 months ago (2015-09-28 14:25:35 UTC) #18
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/1369723003/diff/90001/content/browser/renderer_host/media/media_stream_manager_unittest.cc File content/browser/renderer_host/media/media_stream_manager_unittest.cc (right): https://codereview.chromium.org/1369723003/diff/90001/content/browser/renderer_host/media/media_stream_manager_unittest.cc#newcode198 content/browser/renderer_host/media/media_stream_manager_unittest.cc:198: std::string unique_default_id(media::AudioManagerBase::kDefaultDeviceId); nit: const? (same for unique_communications_id, unique_other_id, ...
5 years, 2 months ago (2015-09-28 14:30:50 UTC) #19
Guido Urdaneta
https://codereview.chromium.org/1369723003/diff/90001/content/browser/renderer_host/media/media_stream_manager_unittest.cc File content/browser/renderer_host/media/media_stream_manager_unittest.cc (right): https://codereview.chromium.org/1369723003/diff/90001/content/browser/renderer_host/media/media_stream_manager_unittest.cc#newcode198 content/browser/renderer_host/media/media_stream_manager_unittest.cc:198: std::string unique_default_id(media::AudioManagerBase::kDefaultDeviceId); On 2015/09/28 14:30:50, tommi wrote: > nit: ...
5 years, 2 months ago (2015-09-28 14:37:24 UTC) #20
jochen (gone - plz use gerrit)
lgtm
5 years, 2 months ago (2015-09-28 17:18:06 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1369723003/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1369723003/110001
5 years, 2 months ago (2015-09-28 19:07:44 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:110001)
5 years, 2 months ago (2015-09-28 20:51:06 UTC) #25
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/9a60f773372afb2625253e8d7632c7036b33086b Cr-Commit-Position: refs/heads/master@{#351132}
5 years, 2 months ago (2015-09-28 20:53:38 UTC) #26
ajm
Drive-by question. https://codereview.chromium.org/1369723003/diff/110001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/1369723003/diff/110001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode87 content/browser/renderer_host/media/audio_renderer_host.cc:87: device_id == media::AudioManagerBase::kCommunicationsDeviceId) { Does it matter ...
5 years, 2 months ago (2015-09-28 22:47:19 UTC) #28
Guido Urdaneta
https://codereview.chromium.org/1369723003/diff/110001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/1369723003/diff/110001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode87 content/browser/renderer_host/media/audio_renderer_host.cc:87: device_id == media::AudioManagerBase::kCommunicationsDeviceId) { On 2015/09/28 22:47:18, ajm wrote: ...
5 years, 2 months ago (2015-09-29 10:36:13 UTC) #29
tommi (sloooow) - chröme
https://codereview.chromium.org/1369723003/diff/110001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/1369723003/diff/110001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode87 content/browser/renderer_host/media/audio_renderer_host.cc:87: device_id == media::AudioManagerBase::kCommunicationsDeviceId) { On 2015/09/28 22:47:18, ajm wrote: ...
5 years, 2 months ago (2015-09-29 11:59:52 UTC) #30
ajm
5 years, 2 months ago (2015-09-29 16:00:55 UTC) #31
Message was sent while issue was closed.
https://codereview.chromium.org/1369723003/diff/110001/content/browser/render...
File content/browser/renderer_host/media/audio_renderer_host.cc (right):

https://codereview.chromium.org/1369723003/diff/110001/content/browser/render...
content/browser/renderer_host/media/audio_renderer_host.cc:87: device_id ==
media::AudioManagerBase::kCommunicationsDeviceId) {
On 2015/09/29 10:36:12, Guido Urdaneta wrote:
> On 2015/09/28 22:47:18, ajm wrote:
> > Does it matter that ChromeOS is not using these IDs when a mic array is
> > available? See line 42-43:
> >
>
https://codereview.chromium.org/1362093002/diff/140001/media/audio/cras/audio...
> 
> No, it does not matter. This is a check for hashed device IDs coming from the
> renderer.
> Those special IDs in ChromeOS will come hashed as an hex string from the
> renderer just like nondefault IDs.

Great, thanks.

https://codereview.chromium.org/1369723003/diff/110001/content/browser/render...
content/browser/renderer_host/media/audio_renderer_host.cc:87: device_id ==
media::AudioManagerBase::kCommunicationsDeviceId) {
On 2015/09/29 11:59:51, tommi wrote:
> On 2015/09/28 22:47:18, ajm wrote:
> > Does it matter that ChromeOS is not using these IDs when a mic array is
> > available? See line 42-43:
> >
>
https://codereview.chromium.org/1362093002/diff/140001/media/audio/cras/audio...
> 
> Is it using any other "known-and-not-translated" ID?

No.

Powered by Google App Engine
This is Rietveld 408576698