| Index: chrome/browser/ui/webui/voice_search_ui.cc
|
| diff --git a/chrome/browser/ui/webui/voice_search_ui.cc b/chrome/browser/ui/webui/voice_search_ui.cc
|
| index 6731445ba4b49ed0a4761a55091f49b390d14f7e..b676d3b411440b7cfbab6b8e2c279095fff9e4bd 100644
|
| --- a/chrome/browser/ui/webui/voice_search_ui.cc
|
| +++ b/chrome/browser/ui/webui/voice_search_ui.cc
|
| @@ -270,9 +270,11 @@ class VoiceSearchDomHandler : public WebUIMessageHandler {
|
|
|
| AddPair(list, "NaCl Enabled", nacl_enabled);
|
|
|
| - AddPair(list,
|
| - "Microphone",
|
| - HotwordServiceFactory::IsMicrophoneAvailable() ? "Yes" : "No");
|
| + HotwordService* hotword_service =
|
| + HotwordServiceFactory::GetForProfile(profile_);
|
| + AddPair(list, "Microphone",
|
| + hotword_service && hotword_service->microphone_available() ? "Yes"
|
| + : "No");
|
|
|
| std::string audio_capture = "No";
|
| if (profile_->GetPrefs()->GetBoolean(prefs::kAudioCaptureAllowed))
|
|
|