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

Side by Side Diff: content/browser/speech/speech_input_manager.cc

Issue 7729001: Get rid of link dependency from content to chrome. Make it get the SpeechInputManager through the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/speech/speech_input_manager.h"
6
7 #include "content/browser/browser_thread.h"
8 #include "media/audio/audio_manager.h"
9
10 namespace speech_input {
11
12 SpeechInputManager::SpeechInputManager() : censor_results_(true) {
13 }
14
15 SpeechInputManager::~SpeechInputManager() {
16 }
17
18 void SpeechInputManager::ShowAudioInputSettings() {
Satish 2011/08/25 09:08:52 was this moved from the chrome/ to content/ becaus
jam 2011/08/25 16:36:43 It was moved because other content code depended o
19 // Since AudioManager::ShowAudioInputSettings can potentially launch external
20 // processes, do that in the FILE thread to not block the calling threads.
21 if (!BrowserThread::CurrentlyOn(BrowserThread::FILE)) {
22 BrowserThread::PostTask(
23 BrowserThread::FILE, FROM_HERE,
24 NewRunnableFunction(&SpeechInputManager::ShowAudioInputSettings));
25 return;
26 }
27
28 DCHECK(AudioManager::GetAudioManager()->CanShowAudioInputSettings());
29 if (AudioManager::GetAudioManager()->CanShowAudioInputSettings())
30 AudioManager::GetAudioManager()->ShowAudioInputSettings();
31 }
32
33 } // namespace speech_input
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698