summaryrefslogtreecommitdiffstats
path: root/extensions/shell/browser/shell_audio_controller_chromeos.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/shell/browser/shell_audio_controller_chromeos.cc')
-rw-r--r--extensions/shell/browser/shell_audio_controller_chromeos.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/shell/browser/shell_audio_controller_chromeos.cc b/extensions/shell/browser/shell_audio_controller_chromeos.cc
index 19e34ce2..1e89065 100644
--- a/extensions/shell/browser/shell_audio_controller_chromeos.cc
+++ b/extensions/shell/browser/shell_audio_controller_chromeos.cc
@@ -78,13 +78,15 @@ void ShellAudioController::ActivateDevices() {
const chromeos::AudioDevice* device = GetDevice(devices, best_input);
DCHECK(device);
VLOG(1) << "Activating input device: " << device->ToString();
- handler->SwitchToDevice(*device, true);
+ handler->SwitchToDevice(*device, true,
+ chromeos::CrasAudioHandler::ACTIVATE_BY_USER);
}
if (best_output && best_output != handler->GetPrimaryActiveOutputNode()) {
const chromeos::AudioDevice* device = GetDevice(devices, best_output);
DCHECK(device);
VLOG(1) << "Activating output device: " << device->ToString();
- handler->SwitchToDevice(*device, true);
+ handler->SwitchToDevice(*device, true,
+ chromeos::CrasAudioHandler::ACTIVATE_BY_USER);
}
}