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

Unified Diff: content/browser/speech/speech_recognition_browsertest.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/speech/speech_recognition_browsertest.cc
diff --git a/content/browser/speech/speech_recognition_browsertest.cc b/content/browser/speech/speech_recognition_browsertest.cc
index d2c3d585fde3c88682ccd55b0fb15096b2a3fa35..ac6bcbc251621c624dfa0520c4d194c3d5809bef 100644
--- a/content/browser/speech/speech_recognition_browsertest.cc
+++ b/content/browser/speech/speech_recognition_browsertest.cc
@@ -121,10 +121,9 @@ class SpeechRecognitionBrowserTest :
void SetUpOnMainThread() override {
ASSERT_TRUE(SpeechRecognitionManagerImpl::GetInstance());
media::AudioManager::StartHangMonitorIfNeeded(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
- SpeechRecognizerImpl::SetAudioManagerForTesting(
- new media::MockAudioManager(BrowserThread::GetMessageLoopProxyForThread(
- BrowserThread::IO)));
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
+ SpeechRecognizerImpl::SetAudioManagerForTesting(new media::MockAudioManager(
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)));
}
void TearDownOnMainThread() override {
« no previous file with comments | « content/browser/service_worker/service_worker_context_wrapper.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698