OLD | NEW |
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 Loading... |
1769 void BrowserMainLoop::CreateAudioManager() { | 1769 void BrowserMainLoop::CreateAudioManager() { |
1770 DCHECK(!audio_thread_); | 1770 DCHECK(!audio_thread_); |
1771 DCHECK(!audio_manager_); | 1771 DCHECK(!audio_manager_); |
1772 | 1772 |
1773 audio_manager_ = GetContentClient()->browser()->CreateAudioManager( | 1773 audio_manager_ = GetContentClient()->browser()->CreateAudioManager( |
1774 MediaInternals::GetInstance()); | 1774 MediaInternals::GetInstance()); |
1775 if (!audio_manager_) { | 1775 if (!audio_manager_) { |
1776 audio_thread_ = base::MakeUnique<AudioManagerThread>(); | 1776 audio_thread_ = base::MakeUnique<AudioManagerThread>(); |
1777 audio_manager_ = media::AudioManager::Create( | 1777 audio_manager_ = media::AudioManager::Create( |
1778 audio_thread_->task_runner(), audio_thread_->worker_task_runner(), | 1778 audio_thread_->task_runner(), audio_thread_->worker_task_runner(), |
| 1779 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), |
1779 MediaInternals::GetInstance()); | 1780 MediaInternals::GetInstance()); |
1780 } | 1781 } |
1781 CHECK(audio_manager_); | 1782 CHECK(audio_manager_); |
1782 | 1783 |
1783 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); | 1784 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); |
1784 CHECK(audio_system_); | 1785 CHECK(audio_system_); |
1785 } | 1786 } |
1786 | 1787 |
1787 } // namespace content | 1788 } // namespace content |
OLD | NEW |