| 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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 // previous call for async startup, so we call RunAllTasksNow() | 819 // previous call for async startup, so we call RunAllTasksNow() |
| 820 // unconditionally. | 820 // unconditionally. |
| 821 startup_task_runner_->RunAllTasksNow(); | 821 startup_task_runner_->RunAllTasksNow(); |
| 822 } | 822 } |
| 823 #else | 823 #else |
| 824 startup_task_runner_->RunAllTasksNow(); | 824 startup_task_runner_->RunAllTasksNow(); |
| 825 #endif | 825 #endif |
| 826 } | 826 } |
| 827 | 827 |
| 828 int BrowserMainLoop::CreateThreads() { | 828 int BrowserMainLoop::CreateThreads() { |
| 829 TRACE_EVENT0("startup", "BrowserMainLoop::CreateThreads"); | 829 TRACE_EVENT0("startup,rail", "BrowserMainLoop::CreateThreads"); |
| 830 | 830 |
| 831 base::Thread::Options io_message_loop_options; | 831 base::Thread::Options io_message_loop_options; |
| 832 io_message_loop_options.message_loop_type = base::MessageLoop::TYPE_IO; | 832 io_message_loop_options.message_loop_type = base::MessageLoop::TYPE_IO; |
| 833 base::Thread::Options ui_message_loop_options; | 833 base::Thread::Options ui_message_loop_options; |
| 834 ui_message_loop_options.message_loop_type = base::MessageLoop::TYPE_UI; | 834 ui_message_loop_options.message_loop_type = base::MessageLoop::TYPE_UI; |
| 835 | 835 |
| 836 // Start threads in the order they occur in the BrowserThread::ID | 836 // Start threads in the order they occur in the BrowserThread::ID |
| 837 // enumeration, except for BrowserThread::UI which is the main | 837 // enumeration, except for BrowserThread::UI which is the main |
| 838 // thread. | 838 // thread. |
| 839 // | 839 // |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1526 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = | 1526 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = |
| 1527 audio_thread_->task_runner(); | 1527 audio_thread_->task_runner(); |
| 1528 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), | 1528 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), |
| 1529 std::move(worker_task_runner), | 1529 std::move(worker_task_runner), |
| 1530 MediaInternals::GetInstance()); | 1530 MediaInternals::GetInstance()); |
| 1531 } | 1531 } |
| 1532 CHECK(audio_manager_); | 1532 CHECK(audio_manager_); |
| 1533 } | 1533 } |
| 1534 | 1534 |
| 1535 } // namespace content | 1535 } // namespace content |
| OLD | NEW |