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

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

Issue 9433006: Remove GetAudioManager and GetMediaStreamManager from ResourceContext. The reason is the content mo… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix deps Created 8 years, 10 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
« no previous file with comments | « media/audio/audio_manager.h ('k') | no next file » | 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
(...skipping 13 matching lines...) Expand all
24 g_audio_manager = NULL; 24 g_audio_manager = NULL;
25 } 25 }
26 26
27 // static 27 // static
28 AudioManager* AudioManager::Create() { 28 AudioManager* AudioManager::Create() {
29 AudioManager* ret = CreateAudioManager(); 29 AudioManager* ret = CreateAudioManager();
30 DCHECK(ret == g_audio_manager); 30 DCHECK(ret == g_audio_manager);
31 ret->Init(); 31 ret->Init();
32 return ret; 32 return ret;
33 } 33 }
34
35 // static
36 AudioManager* AudioManager::Get() {
37 return g_audio_manager;
tommi (sloooow) - chröme 2012/02/21 21:04:08 See the comment above for g_audio_manager: " // Us
jam 2012/02/21 21:09:47 got it. I didn't know you were planning on removin
tommi (sloooow) - chröme 2012/02/21 21:15:23 Yes, ContentBrowserClient.
38 }
OLDNEW
« no previous file with comments | « media/audio/audio_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698