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

Issue 2510093003: Handle audio node stable device ID change (Closed)

Created:
4 years, 1 month ago by tbarzic
Modified:
4 years ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, hashimoto+watch_chromium.org, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle audio node stable device ID change Chrome side change for updating the way stable device ID is calculated for USB audio device nodes in order to make them more usefull when distinguishing among USB audio devices with same USB vendor and product IDs. Cras will start providing new property - StableDeviceIdOld that will contain old, now deprecated stable device ID - this will be used to migrate audio device prefs to new stable ID (to provide some backward compatibility). This property is expected to eventually go away. This does not expose new value to audio extension API, but cl will follow - for now, keep providing old ID version through API. Huge line diff is mostly due to refactoring test to account for new stable device ID version :) Parametrizes cras audio client unit tests by the version od stable device ID provided by audio device - to ensure it keeps working as expcted with both stable device ID version (does not test for mixing devices with different stable device ID versions, that is never expected to happen). Added audio devices pref handler for migrating audio device records when audio device stable device ID changes. BUG=661861 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/3ab01a28f2ccd9abc62a3833d72959205ddce98b Cr-Commit-Position: refs/heads/master@{#439304}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : switch to usign StableDeviceIdNew const #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : update few comments #

Total comments: 25

Patch Set 9 : . #

Patch Set 10 : update bug number in todo in audio_service_chromeos #

Patch Set 11 : media unittests to v2 stabl device id #

Patch Set 12 : fix a typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1423 lines, -1120 lines) Patch
M chromeos/audio/audio_device.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -7 lines 0 comments Download
M chromeos/audio/audio_device.cc View 1 2 3 4 3 chunks +15 lines, -15 lines 0 comments Download
M chromeos/audio/audio_devices_pref_handler_impl.h View 1 2 3 4 5 6 7 1 chunk +23 lines, -6 lines 0 comments Download
M chromeos/audio/audio_devices_pref_handler_impl.cc View 1 2 3 4 5 6 7 8 11 chunks +104 lines, -15 lines 0 comments Download
M chromeos/audio/audio_devices_pref_handler_impl_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +367 lines, -114 lines 0 comments Download
M chromeos/audio/cras_audio_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromeos/audio/cras_audio_handler_unittest.cc View 1 2 3 4 5 119 chunks +685 lines, -852 lines 0 comments Download
M chromeos/dbus/audio_node.h View 1 2 3 4 5 2 chunks +13 lines, -6 lines 0 comments Download
M chromeos/dbus/audio_node.cc View 1 2 3 4 4 chunks +21 lines, -10 lines 0 comments Download
M chromeos/dbus/cras_audio_client.cc View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M chromeos/dbus/cras_audio_client_unittest.cc View 1 2 3 4 5 6 6 chunks +68 lines, -5 lines 0 comments Download
M chromeos/dbus/fake_cras_audio_client.cc View 1 2 3 4 7 chunks +7 lines, -7 lines 0 comments Download
M extensions/browser/api/audio/audio_apitest.cc View 7 chunks +72 lines, -79 lines 0 comments Download
M extensions/browser/api/audio/audio_service_chromeos.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -1 line 0 comments Download
M media/audio/audio_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (35 generated)
tbarzic
mojahsu and hychao FYI steel: extensions/browser/api/audio/
4 years, 1 month ago (2016-11-21 17:38:33 UTC) #14
tbarzic
Jenny, can you please take a look at this when you have time :) (cras ...
4 years ago (2016-11-30 21:06:16 UTC) #24
jennyz
https://codereview.chromium.org/2510093003/diff/140001/chromeos/audio/audio_devices_pref_handler_impl.cc File chromeos/audio/audio_devices_pref_handler_impl.cc (right): https://codereview.chromium.org/2510093003/diff/140001/chromeos/audio/audio_devices_pref_handler_impl.cc#newcode45 chromeos/audio/audio_devices_pref_handler_impl.cc:45: int version) { It looks like |version| can only ...
4 years ago (2016-12-09 23:52:19 UTC) #25
tbarzic
https://codereview.chromium.org/2510093003/diff/140001/chromeos/audio/audio_devices_pref_handler_impl.cc File chromeos/audio/audio_devices_pref_handler_impl.cc (right): https://codereview.chromium.org/2510093003/diff/140001/chromeos/audio/audio_devices_pref_handler_impl.cc#newcode45 chromeos/audio/audio_devices_pref_handler_impl.cc:45: int version) { On 2016/12/09 23:52:18, jennyz wrote: > ...
4 years ago (2016-12-10 02:35:08 UTC) #28
jennyz
lgtm
4 years ago (2016-12-12 18:18:00 UTC) #31
jennyz
lgtm lgtm
4 years ago (2016-12-12 18:18:06 UTC) #32
tbarzic
+tommi - owner for media/audio/audio_manager_unittest.cc
4 years ago (2016-12-12 18:39:01 UTC) #34
tommi (sloooow) - chröme
lgtm
4 years ago (2016-12-13 10:42:18 UTC) #35
tbarzic
steel@, I still need your owner approval for extensions/browser/api/audio :)
4 years ago (2016-12-14 19:09:48 UTC) #36
Rahul Chaturvedi
lgtm
4 years ago (2016-12-15 22:12:17 UTC) #37
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/2510093003/200001
4 years ago (2016-12-16 23:30:00 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/253455)
4 years ago (2016-12-16 23:56:23 UTC) #42
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/2510093003/220001
4 years ago (2016-12-17 01:43:08 UTC) #45
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years ago (2016-12-17 03:13:31 UTC) #48
commit-bot: I haz the power
4 years ago (2016-12-17 03:15:37 UTC) #50
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/3ab01a28f2ccd9abc62a3833d72959205ddce98b
Cr-Commit-Position: refs/heads/master@{#439304}

Powered by Google App Engine
This is Rietveld 408576698