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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 } | 575 } |
576 | 576 |
577 { | 577 { |
578 system_stats_monitor_.reset( | 578 system_stats_monitor_.reset( |
579 new base::trace_event::TraceEventSystemStatsMonitor( | 579 new base::trace_event::TraceEventSystemStatsMonitor( |
580 base::ThreadTaskRunnerHandle::Get())); | 580 base::ThreadTaskRunnerHandle::Get())); |
581 } | 581 } |
582 | 582 |
583 { | 583 { |
584 base::SetRecordActionTaskRunner( | 584 base::SetRecordActionTaskRunner( |
585 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)); | 585 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI)); |
586 } | 586 } |
587 | 587 |
588 #if defined(OS_WIN) | 588 #if defined(OS_WIN) |
589 if (base::win::GetVersion() >= base::win::VERSION_WIN8) | 589 if (base::win::GetVersion() >= base::win::VERSION_WIN8) |
590 screen_orientation_delegate_.reset(new ScreenOrientationDelegateWin()); | 590 screen_orientation_delegate_.reset(new ScreenOrientationDelegateWin()); |
591 #endif | 591 #endif |
592 | 592 |
593 // TODO(boliu): kSingleProcess check is a temporary workaround for | 593 // TODO(boliu): kSingleProcess check is a temporary workaround for |
594 // in-process Android WebView. crbug.com/503724 tracks proper fix. | 594 // in-process Android WebView. crbug.com/503724 tracks proper fix. |
595 if (!parsed_command_line_.HasSwitch(switches::kSingleProcess)) { | 595 if (!parsed_command_line_.HasSwitch(switches::kSingleProcess)) { |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1504 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = | 1504 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = |
1505 audio_thread_->task_runner(); | 1505 audio_thread_->task_runner(); |
1506 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), | 1506 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), |
1507 std::move(worker_task_runner), | 1507 std::move(worker_task_runner), |
1508 MediaInternals::GetInstance()); | 1508 MediaInternals::GetInstance()); |
1509 } | 1509 } |
1510 CHECK(audio_manager_); | 1510 CHECK(audio_manager_); |
1511 } | 1511 } |
1512 | 1512 |
1513 } // namespace content | 1513 } // namespace content |
OLD | NEW |