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

Unified Diff: ash/system/chromeos/audio/audio_detailed_view.cc

Issue 1746843002: Persist the user's active audio device choice across chromeos session and reboots. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromeos/audio/audio_devices_pref_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/audio/audio_detailed_view.cc
diff --git a/ash/system/chromeos/audio/audio_detailed_view.cc b/ash/system/chromeos/audio/audio_detailed_view.cc
index 2e769434773f2a65b11d9689f6b9f3361ec4215b..ec960ee229758118eaeea9949eef97bc3b4e6f06 100644
--- a/ash/system/chromeos/audio/audio_detailed_view.cc
+++ b/ash/system/chromeos/audio/audio_detailed_view.cc
@@ -167,8 +167,9 @@ void AudioDetailedView::OnViewClicked(views::View* sender) {
AudioDeviceMap::iterator iter = device_map_.find(sender);
if (iter == device_map_.end())
return;
- chromeos::AudioDevice& device = iter->second;
- CrasAudioHandler::Get()->SwitchToDevice(device, true);
+ chromeos::AudioDevice device = iter->second;
+ CrasAudioHandler::Get()->SwitchToDevice(device, true,
+ CrasAudioHandler::ACTIVATE_BY_USER);
}
}
« no previous file with comments | « no previous file | chromeos/audio/audio_devices_pref_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698