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

Unified Diff: chrome/browser/speech/speech_input_bubble_views.cc

Issue 8818012: Remove the AudioManager singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Address comments from Avi Created 9 years 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
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() {

Powered by Google App Engine
This is Rietveld 408576698