Index: chrome/browser/search/hotword_service_factory.cc |
diff --git a/chrome/browser/search/hotword_service_factory.cc b/chrome/browser/search/hotword_service_factory.cc |
index 8884ad6c9f9becf3a80a9e1fde44c07e53ecd4c0..7b3b2168c49cca7ffba4c7a98f59114909aa950a 100644 |
--- a/chrome/browser/search/hotword_service_factory.cc |
+++ b/chrome/browser/search/hotword_service_factory.cc |
@@ -47,18 +47,6 @@ bool HotwordServiceFactory::IsHotwordAllowed(BrowserContext* context) { |
// static |
bool HotwordServiceFactory::IsHotwordHardwareAvailable() { |
Matt Giuca
2015/01/15 01:51:21
I don't like the idea of removing this code; I und
Anand Mistry (off Chromium)
2015/01/15 02:21:01
Done.
|
-#if defined(OS_CHROMEOS) |
- if (chromeos::CrasAudioHandler::IsInitialized()) { |
- chromeos::AudioDeviceList devices; |
- chromeos::CrasAudioHandler::Get()->GetAudioDevices(&devices); |
- for (size_t i = 0; i < devices.size(); ++i) { |
- if (devices[i].type == chromeos::AUDIO_TYPE_AOKR) { |
- DCHECK(devices[i].is_input); |
- return true; |
- } |
- } |
- } |
-#endif |
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
return command_line->HasSwitch(switches::kEnableExperimentalHotwordHardware); |
} |