diff options
author | jennyz <jennyz@chromium.org> | 2016-03-02 12:15:52 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-02 20:17:16 +0000 |
commit | bd23674643e0993e443ef785e80b9ad2e3e9adf4 (patch) | |
tree | ceacaa531bf0eee1923686dcf5c6b74d5ecdee99 /chromeos/dbus/fake_cras_audio_client.cc | |
parent | 66a4306ee83b007997120be98638487a617938d8 (diff) | |
download | chromium_src-bd23674643e0993e443ef785e80b9ad2e3e9adf4.zip chromium_src-bd23674643e0993e443ef785e80b9ad2e3e9adf4.tar.gz chromium_src-bd23674643e0993e443ef785e80b9ad2e3e9adf4.tar.bz2 |
Persist the user's active audio device choice across chromeos session and reboots.
This cl added a new attribute to device's active state settings to describe if the device is made active by user's selection or by automatic priority selection. The device made active by user has a higher priority than the device made active by priority.
With the stable device id, the active device selection rule is different than before, which only select the active device by its priority. Please see the details in the following document.
https://docs.google.com/a/google.com/document/d/1zmSeM956Njh_9ZdLqyld-NTOpJyXVIfzv8DvQ1Xcksw/edit?usp=sharing
BUG=308143
TBR=stevenjb,rkc,derat
Review URL: https://codereview.chromium.org/1746843002
Cr-Commit-Position: refs/heads/master@{#378812}
Diffstat (limited to 'chromeos/dbus/fake_cras_audio_client.cc')
-rw-r--r-- | chromeos/dbus/fake_cras_audio_client.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromeos/dbus/fake_cras_audio_client.cc b/chromeos/dbus/fake_cras_audio_client.cc index 8bffa16..b8778ca 100644 --- a/chromeos/dbus/fake_cras_audio_client.cc +++ b/chromeos/dbus/fake_cras_audio_client.cc @@ -174,6 +174,11 @@ void FakeCrasAudioClient::AddActiveOutputNode(uint64_t node_id) { } } +void FakeCrasAudioClient::WaitForServiceToBeAvailable( + const WaitForServiceToBeAvailableCallback& callback) { + callback.Run(true); +} + void FakeCrasAudioClient::RemoveActiveOutputNode(uint64_t node_id) { for (size_t i = 0; i < node_list_.size(); ++i) { if (node_list_[i].id == node_id) |