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

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

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Code review. Created 3 years, 9 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
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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698