| 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 } | 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 |
| OLD | NEW |