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

Side by Side Diff: chromecast/browser/cast_content_browser_client_simple.cc

Issue 1113053002: Set the AudioManager factory before the browser main loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup + naming Created 5 years, 7 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
« no previous file with comments | « chromecast/browser/cast_content_browser_client.cc ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chromecast/browser/cast_content_browser_client.h" 5 #include "chromecast/browser/cast_content_browser_client.h"
6 6
7 #include "content/public/browser/browser_message_filter.h" 7 #include "content/public/browser/browser_message_filter.h"
8 #include "media/audio/audio_manager_factory.h"
8 9
9 namespace chromecast { 10 namespace chromecast {
10 namespace shell { 11 namespace shell {
11 12
12 void CastContentBrowserClient::PlatformAppendExtraCommandLineSwitches( 13 void CastContentBrowserClient::PlatformAppendExtraCommandLineSwitches(
13 base::CommandLine* command_line) { 14 base::CommandLine* command_line) {
14 } 15 }
15 16
16 std::vector<scoped_refptr<content::BrowserMessageFilter>> 17 std::vector<scoped_refptr<content::BrowserMessageFilter>>
17 CastContentBrowserClient::PlatformGetBrowserMessageFilters() { 18 CastContentBrowserClient::PlatformGetBrowserMessageFilters() {
18 return std::vector<scoped_refptr<content::BrowserMessageFilter>>(); 19 return std::vector<scoped_refptr<content::BrowserMessageFilter>>();
19 } 20 }
20 21
22 scoped_ptr<::media::AudioManagerFactory>
23 CastContentBrowserClient::PlatformCreateAudioManagerFactory() {
24 // Return nullptr. The factory will not be set, and the statically linked
25 // implementation of AudioManager will be used.
26 return scoped_ptr<::media::AudioManagerFactory>();
27 }
28
21 } // namespace shell 29 } // namespace shell
22 } // namespace chromecast 30 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_content_browser_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698