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

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: Created 5 years, 6 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/DEPS » ('j') | chromeos/audio/audio_device.h » ('J')
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 fa1438b536a8d2809cf0a3f488ce7550e88c6332..00199c3af74932a2651cde9ee5b052338980545c 100644
--- a/ash/system/chromeos/audio/audio_detailed_view.cc
+++ b/ash/system/chromeos/audio/audio_detailed_view.cc
@@ -117,10 +117,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/DEPS » ('j') | chromeos/audio/audio_device.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698