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

Side by Side Diff: media/audio/audio_thread.cc

Issue 1806313003: Pass task runners to AudioManager constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implemented ScopedAudioManagerPtr Created 4 years, 9 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
OLDNEW
(Empty)
1 // Copyright 2016 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 "media/audio/audio_thread.h"
6
7 #include "base/lazy_instance.h"
8
9 static base::LazyInstance<media::AudioThread> g_thread =
10 LAZY_INSTANCE_INITIALIZER;
11
12 namespace media {
13
14 AudioThread::AudioThread() : thread_("Audio") {
15 #if defined(OS_WIN)
16 thread_.init_com_with_mta(true);
tommi (sloooow) - chröme 2016/03/19 02:32:41 just checking - is this how things were before? u
alokp 2016/03/22 21:47:07 yes this code is moved from elsewhere. I can remov
17 #endif
18 CHECK(thread_.Start());
19 }
20
21 // static
22 base::Thread* AudioThread::Get() {
23 return &(g_thread.Get().thread_);
24 }
25
26 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698