| Index: chrome/browser/speech/speech_input_bubble_views.cc
|
| ===================================================================
|
| --- chrome/browser/speech/speech_input_bubble_views.cc (revision 113173)
|
| +++ chrome/browser/speech/speech_input_bubble_views.cc (working copy)
|
| @@ -12,6 +12,7 @@
|
| #include "chrome/browser/ui/views/location_bar/location_icon_view.h"
|
| #include "chrome/browser/ui/views/toolbar_view.h"
|
| #include "chrome/browser/ui/views/window.h"
|
| +#include "content/browser/resource_context.h"
|
| #include "content/browser/tab_contents/tab_contents.h"
|
| #include "content/browser/tab_contents/tab_contents_view.h"
|
| #include "grit/generated_resources.h"
|
| @@ -207,7 +208,9 @@
|
|
|
| void SpeechInputBubbleView::LinkClicked(views::Link* source, int event_flags) {
|
| DCHECK_EQ(source, mic_settings_);
|
| - AudioManager::GetAudioManager()->ShowAudioInputSettings();
|
| + Profile* profile =
|
| + Profile::FromBrowserContext(tab_contents_->browser_context());
|
| + profile->GetResourceContext().audio_manager()->ShowAudioInputSettings();
|
| }
|
|
|
| gfx::Size SpeechInputBubbleView::GetPreferredSize() {
|
|
|