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

Issue 1380103003: Store audio device's active state in preference (Closed)

Created:
5 years, 2 months ago by hychao
Modified:
4 years, 11 months ago
Reviewers:
rkc, Daniel Erat, jennyz
CC:
chromium-reviews, hashimoto+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Store audio device's active state in preference Use the stable device id provided by CRAS as key to store the latest preference that user selects to or away from an audio device. BUG=308143 Committed: https://crrev.com/fe100d54b8455fdc706744a7f39f7d36653b2693 Cr-Commit-Position: refs/heads/master@{#368845}

Patch Set 1 #

Patch Set 2 : #

Total comments: 42

Patch Set 3 : Addressed code review comments #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 20

Patch Set 6 : Fix comments #

Patch Set 7 : Fix comments, formatted. #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : fix audio_apitest #

Patch Set 10 : Fix string format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+420 lines, -157 lines) Patch
M chromeos/audio/audio_device.h View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M chromeos/audio/audio_device.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M chromeos/audio/audio_devices_pref_handler.h View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
M chromeos/audio/audio_devices_pref_handler_impl.h View 1 2 3 4 5 6 3 chunks +13 lines, -4 lines 0 comments Download
M chromeos/audio/audio_devices_pref_handler_impl.cc View 1 2 3 4 5 6 9 chunks +46 lines, -27 lines 0 comments Download
M chromeos/audio/audio_devices_pref_handler_impl_unittest.cc View 1 2 8 chunks +24 lines, -0 lines 0 comments Download
M chromeos/audio/audio_devices_pref_handler_stub.h View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
M chromeos/audio/audio_devices_pref_handler_stub.cc View 1 2 3 4 5 6 1 chunk +22 lines, -7 lines 0 comments Download
M chromeos/audio/cras_audio_handler.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chromeos/audio/cras_audio_handler.cc View 1 2 3 4 5 6 11 chunks +79 lines, -29 lines 0 comments Download
M chromeos/audio/cras_audio_handler_unittest.cc View 1 2 3 4 5 6 10 chunks +158 lines, -79 lines 0 comments Download
M chromeos/chromeos_pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_pref_names.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/dbus/audio_node.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chromeos/dbus/audio_node.cc View 1 2 3 4 5 6 3 chunks +5 lines, -3 lines 0 comments Download
M chromeos/dbus/cras_audio_client.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/api/audio/audio_apitest.cc View 1 2 3 4 5 6 7 8 3 chunks +21 lines, -5 lines 0 comments Download

Messages

Total messages: 44 (18 generated)
jennyz
https://codereview.chromium.org/1380103003/diff/20001/chromeos/audio/audio_device.cc File chromeos/audio/audio_device.cc (right): https://codereview.chromium.org/1380103003/diff/20001/chromeos/audio/audio_device.cc#newcode134 chromeos/audio/audio_device.cc:134: std::string AudioDevice::ToString() const { Please add stable_device_id. https://codereview.chromium.org/1380103003/diff/20001/chromeos/audio/audio_devices_pref_handler.h File ...
5 years ago (2015-12-17 22:50:22 UTC) #2
jennyz
By the way, we will need to pass stabel_device_id in the extension audio api for ...
5 years ago (2015-12-17 22:54:34 UTC) #3
hychao
Thanks for the detailed review! https://codereview.chromium.org/1380103003/diff/20001/chromeos/audio/audio_device.cc File chromeos/audio/audio_device.cc (right): https://codereview.chromium.org/1380103003/diff/20001/chromeos/audio/audio_device.cc#newcode134 chromeos/audio/audio_device.cc:134: std::string AudioDevice::ToString() const { ...
4 years, 11 months ago (2015-12-29 10:57:25 UTC) #4
jennyz
LGTM with nits. Thanks for putting this together! https://codereview.chromium.org/1380103003/diff/20001/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/1380103003/diff/20001/chromeos/audio/cras_audio_handler.cc#newcode240 chromeos/audio/cras_audio_handler.cc:240: void ...
4 years, 11 months ago (2016-01-05 23:46:55 UTC) #5
hychao
https://codereview.chromium.org/1380103003/diff/20001/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/1380103003/diff/20001/chromeos/audio/cras_audio_handler.cc#newcode240 chromeos/audio/cras_audio_handler.cc:240: void CrasAudioHandler::ChangeActiveNodes(const NodeIdList& new_active_ids) { On 2016/01/05 23:46:55, jennyz ...
4 years, 11 months ago (2016-01-06 06:34:12 UTC) #6
jennyz
lgtm
4 years, 11 months ago (2016-01-06 18:11:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1380103003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1380103003/60001
4 years, 11 months ago (2016-01-07 02:12:20 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/133198)
4 years, 11 months ago (2016-01-07 02:23:32 UTC) #12
Daniel Erat
https://codereview.chromium.org/1380103003/diff/60001/chromeos/chromeos_pref_names.cc File chromeos/chromeos_pref_names.cc (right): https://codereview.chromium.org/1380103003/diff/60001/chromeos/chromeos_pref_names.cc#newcode36 chromeos/chromeos_pref_names.cc:36: const char kAudioDevicesState[] = "settings.audio.device_state"; please add a comment ...
4 years, 11 months ago (2016-01-07 02:46:15 UTC) #13
hychao
https://codereview.chromium.org/1380103003/diff/60001/chromeos/chromeos_pref_names.cc File chromeos/chromeos_pref_names.cc (right): https://codereview.chromium.org/1380103003/diff/60001/chromeos/chromeos_pref_names.cc#newcode36 chromeos/chromeos_pref_names.cc:36: const char kAudioDevicesState[] = "settings.audio.device_state"; On 2016/01/07 02:46:15, Daniel ...
4 years, 11 months ago (2016-01-07 03:14:16 UTC) #14
Daniel Erat
https://codereview.chromium.org/1380103003/diff/80001/chromeos/audio/audio_device.h File chromeos/audio/audio_device.h (right): https://codereview.chromium.org/1380103003/diff/80001/chromeos/audio/audio_device.h#newcode61 chromeos/audio/audio_device.h:61: uint64_t stable_device_id; document the difference between this and id. ...
4 years, 11 months ago (2016-01-07 17:31:12 UTC) #15
hychao
https://codereview.chromium.org/1380103003/diff/80001/chromeos/audio/audio_device.h File chromeos/audio/audio_device.h (right): https://codereview.chromium.org/1380103003/diff/80001/chromeos/audio/audio_device.h#newcode61 chromeos/audio/audio_device.h:61: uint64_t stable_device_id; On 2016/01/07 17:31:12, Daniel Erat wrote: > ...
4 years, 11 months ago (2016-01-11 07:02:32 UTC) #16
Daniel Erat
lgtm thanks. lgtm-ing since i'll be out for most of this week, but please address ...
4 years, 11 months ago (2016-01-11 14:39:30 UTC) #17
hychao
Thank you for the detailed review, Daniel! https://codereview.chromium.org/1380103003/diff/120001/chromeos/chromeos_pref_names.cc File chromeos/chromeos_pref_names.cc (right): https://codereview.chromium.org/1380103003/diff/120001/chromeos/chromeos_pref_names.cc#newcode36 chromeos/chromeos_pref_names.cc:36: // An ...
4 years, 11 months ago (2016-01-12 04:21:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1380103003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1380103003/140001
4 years, 11 months ago (2016-01-12 04:21:47 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/78122) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-12 04:37:53 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1380103003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1380103003/160001
4 years, 11 months ago (2016-01-12 06:38:59 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/134443)
4 years, 11 months ago (2016-01-12 06:49:02 UTC) #28
rkc
rubberstamp LGTM since derat and jennzy already have lgtm'ed
4 years, 11 months ago (2016-01-12 07:07:32 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1380103003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1380103003/160001
4 years, 11 months ago (2016-01-12 07:24:56 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/78189)
4 years, 11 months ago (2016-01-12 07:51:54 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1380103003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1380103003/180001
4 years, 11 months ago (2016-01-12 08:04:23 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/100554)
4 years, 11 months ago (2016-01-12 08:12:44 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1380103003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1380103003/180001
4 years, 11 months ago (2016-01-12 09:41:50 UTC) #40
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 11 months ago (2016-01-12 10:18:01 UTC) #42
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 10:18:44 UTC) #44
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/fe100d54b8455fdc706744a7f39f7d36653b2693
Cr-Commit-Position: refs/heads/master@{#368845}

Powered by Google App Engine
This is Rietveld 408576698