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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 2885173002: Make AudioDebugFileWriter create its own file worker thread. (Closed)
Patch Set: Remove useless include Created 3 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 | « no previous file | content/browser/renderer_host/media/audio_input_renderer_host.cc » ('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 "content/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 } 1769 }
1770 1770
1771 void BrowserMainLoop::CreateAudioManager() { 1771 void BrowserMainLoop::CreateAudioManager() {
1772 DCHECK(!audio_manager_); 1772 DCHECK(!audio_manager_);
1773 1773
1774 audio_manager_ = GetContentClient()->browser()->CreateAudioManager( 1774 audio_manager_ = GetContentClient()->browser()->CreateAudioManager(
1775 MediaInternals::GetInstance()); 1775 MediaInternals::GetInstance());
1776 if (!audio_manager_) { 1776 if (!audio_manager_) {
1777 audio_manager_ = media::AudioManager::Create( 1777 audio_manager_ = media::AudioManager::Create(
1778 base::MakeUnique<media::AudioThreadImpl>(), 1778 base::MakeUnique<media::AudioThreadImpl>(),
1779 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE),
1780 MediaInternals::GetInstance()); 1779 MediaInternals::GetInstance());
1781 } 1780 }
1782 CHECK(audio_manager_); 1781 CHECK(audio_manager_);
1783 1782
1784 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); 1783 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get());
1785 CHECK(audio_system_); 1784 CHECK(audio_system_);
1786 } 1785 }
1787 1786
1788 } // namespace content 1787 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_input_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698