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

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

Issue 2627453004: Tweaks to new BrowserThreadImpl/BrowserMainLoop logic. (Closed)
Patch Set: Created 3 years, 11 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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 "Thread", "BrowserThread::FILE"); 1046 "Thread", "BrowserThread::FILE");
1047 1047
1048 #if defined(OS_WIN) 1048 #if defined(OS_WIN)
1049 // On Windows, the FILE thread needs to have a UI message loop which 1049 // On Windows, the FILE thread needs to have a UI message loop which
1050 // pumps messages in such a way that Google Update can communicate back 1050 // pumps messages in such a way that Google Update can communicate back
1051 // to us. 1051 // to us.
1052 // TODO(robliao): Need to support COM in TaskScheduler before 1052 // TODO(robliao): Need to support COM in TaskScheduler before
1053 // redirecting the FILE thread on Windows. http://crbug.com/662122 1053 // redirecting the FILE thread on Windows. http://crbug.com/662122
1054 thread_to_start = &file_thread_; 1054 thread_to_start = &file_thread_;
1055 options = ui_message_loop_options; 1055 options = ui_message_loop_options;
1056 options.timer_slack = base::TIMER_SLACK_MAXIMUM;
gab 2017/01/10 15:48:28 Forgot to add this to the OS_WIN only section to m
1056 #else 1057 #else
1057 if (redirect_nonUInonIO_browser_threads) { 1058 if (redirect_nonUInonIO_browser_threads) {
1058 non_ui_non_io_task_runner_traits 1059 non_ui_non_io_task_runner_traits
1059 .WithPriority(base::TaskPriority::USER_VISIBLE) 1060 .WithPriority(base::TaskPriority::USER_VISIBLE)
1060 .WithShutdownBehavior(base::TaskShutdownBehavior::BLOCK_SHUTDOWN); 1061 .WithShutdownBehavior(base::TaskShutdownBehavior::BLOCK_SHUTDOWN);
1061 } else { 1062 } else {
1062 thread_to_start = &file_thread_; 1063 thread_to_start = &file_thread_;
1063 options = io_message_loop_options; 1064 options = io_message_loop_options;
1064 options.timer_slack = base::TIMER_SLACK_MAXIMUM; 1065 options.timer_slack = base::TIMER_SLACK_MAXIMUM;
1065 } 1066 }
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 if (!audio_manager_) { 1781 if (!audio_manager_) {
1781 audio_thread_ = base::MakeUnique<AudioManagerThread>(); 1782 audio_thread_ = base::MakeUnique<AudioManagerThread>();
1782 audio_manager_ = media::AudioManager::Create( 1783 audio_manager_ = media::AudioManager::Create(
1783 audio_thread_->task_runner(), audio_thread_->worker_task_runner(), 1784 audio_thread_->task_runner(), audio_thread_->worker_task_runner(),
1784 MediaInternals::GetInstance()); 1785 MediaInternals::GetInstance());
1785 } 1786 }
1786 CHECK(audio_manager_); 1787 CHECK(audio_manager_);
1787 } 1788 }
1788 1789
1789 } // namespace content 1790 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_thread_impl.cc » ('j') | content/browser/browser_thread_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698