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

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

Issue 795393002: [Hotword] Implement IsHotwordHardwareAvailable() using device types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix failures due to double init of cras audio handler Created 6 years 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 | chrome/browser/extensions/component_loader_unittest.cc » ('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 9865774133b1a5cfa9ce2af2f70c69cad079ac1f..1dce1182cb4b07da180a6f480807b62c0c23fd71 100644
--- a/ash/system/chromeos/audio/audio_detailed_view.cc
+++ b/ash/system/chromeos/audio/audio_detailed_view.cc
@@ -118,8 +118,9 @@ void AudioDetailedView::UpdateAudioDevices() {
chromeos::AudioDeviceList devices;
CrasAudioHandler::Get()->GetAudioDevices(&devices);
for (size_t i = 0; i < devices.size(); ++i) {
- // Don't display keyboard mic.
- if (devices[i].type == chromeos::AUDIO_TYPE_KEYBOARD_MIC)
+ // Don't display keyboard mic or aokr type.
+ if (devices[i].type == chromeos::AUDIO_TYPE_KEYBOARD_MIC ||
+ devices[i].type == chromeos::AUDIO_TYPE_AOKR)
continue;
if (devices[i].is_input)
input_devices_.push_back(devices[i]);
« no previous file with comments | « no previous file | chrome/browser/extensions/component_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698