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

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

Issue 11175066: Replace AudioManager::Init() with InitializeOnAudioThread(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. Created 8 years, 1 month 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
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/audio_manager.h" 5 #include "media/audio/audio_manager.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 10
11 namespace media { 11 namespace media {
12 12
13 // Forward declaration of the platform specific AudioManager factory function. 13 // Forward declaration of the platform specific AudioManager factory function.
14 AudioManager* CreateAudioManager(); 14 AudioManager* CreateAudioManager();
15 15
16 AudioManager::AudioManager() { 16 AudioManager::AudioManager() {
17 } 17 }
18 18
19 AudioManager::~AudioManager() { 19 AudioManager::~AudioManager() {
20 } 20 }
21 21
22 // static 22 // static
23 AudioManager* AudioManager::Create() { 23 AudioManager* AudioManager::Create() {
24 AudioManager* ret = CreateAudioManager(); 24 return CreateAudioManager();
25 ret->Init();
26 return ret;
27 } 25 }
28 26
29 } // namespace media 27 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698