| 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 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1694 | 1694 |
| 1695 void BrowserMainLoop::CreateAudioManager() { | 1695 void BrowserMainLoop::CreateAudioManager() { |
| 1696 DCHECK(!audio_thread_); | 1696 DCHECK(!audio_thread_); |
| 1697 DCHECK(!audio_manager_); | 1697 DCHECK(!audio_manager_); |
| 1698 | 1698 |
| 1699 audio_manager_ = GetContentClient()->browser()->CreateAudioManager( | 1699 audio_manager_ = GetContentClient()->browser()->CreateAudioManager( |
| 1700 MediaInternals::GetInstance()); | 1700 MediaInternals::GetInstance()); |
| 1701 if (!audio_manager_) { | 1701 if (!audio_manager_) { |
| 1702 audio_thread_ = base::MakeUnique<AudioDeviceThread>(); | 1702 audio_thread_ = base::MakeUnique<AudioDeviceThread>(); |
| 1703 audio_manager_ = media::AudioManager::Create( | 1703 audio_manager_ = media::AudioManager::Create( |
| 1704 audio_thread_->GetTaskRunner(), audio_thread_->worker_task_runner(), | 1704 audio_thread_->task_runner(), audio_thread_->worker_task_runner(), |
| 1705 MediaInternals::GetInstance()); | 1705 MediaInternals::GetInstance()); |
| 1706 } | 1706 } |
| 1707 CHECK(audio_manager_); | 1707 CHECK(audio_manager_); |
| 1708 } | 1708 } |
| 1709 | 1709 |
| 1710 } // namespace content | 1710 } // namespace content |
| OLD | NEW |