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

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

Issue 1186293003: Implement HasInputDevices in CrasAudioManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a comment in cras_audio_handler.h for GetAudioDevices Created 5 years, 5 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_device.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 d970542df03d303a6176b00272ae3fd7ea2b7fb1..2e769434773f2a65b11d9689f6b9f3361ec4215b 100644
--- a/ash/system/chromeos/audio/audio_detailed_view.cc
+++ b/ash/system/chromeos/audio/audio_detailed_view.cc
@@ -120,10 +120,7 @@ void AudioDetailedView::UpdateAudioDevices() {
CrasAudioHandler::Get()->GetAudioDevices(&devices);
for (size_t i = 0; i < devices.size(); ++i) {
// Don't display keyboard mic or aokr type.
- if (devices[i].type == chromeos::AUDIO_TYPE_KEYBOARD_MIC ||
- devices[i].type == chromeos::AUDIO_TYPE_AOKR ||
- devices[i].type == chromeos::AUDIO_TYPE_POST_MIX_LOOPBACK ||
- devices[i].type == chromeos::AUDIO_TYPE_POST_DSP_LOOPBACK)
+ if (!devices[i].is_for_simple_usage())
continue;
if (devices[i].is_input)
input_devices_.push_back(devices[i]);
« no previous file with comments | « no previous file | chromeos/audio/audio_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698