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

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

Issue 2584923002: Redirect BrowserThread::FILE at USER_VISIBLE instead of BACKGROUND priority. (Closed)
Patch Set: kill fake dependency Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 // On Windows, the FILE thread needs to have a UI message loop which 1047 // On Windows, the FILE thread needs to have a UI message loop which
1048 // pumps messages in such a way that Google Update can communicate back 1048 // pumps messages in such a way that Google Update can communicate back
1049 // to us. 1049 // to us.
1050 // TODO(robliao): Need to support COM in TaskScheduler before 1050 // TODO(robliao): Need to support COM in TaskScheduler before
1051 // redirecting the FILE thread on Windows. http://crbug.com/662122 1051 // redirecting the FILE thread on Windows. http://crbug.com/662122
1052 thread_to_start = &file_thread_; 1052 thread_to_start = &file_thread_;
1053 options = ui_message_loop_options; 1053 options = ui_message_loop_options;
1054 #else 1054 #else
1055 if (redirect_nonUInonIO_browser_threads) { 1055 if (redirect_nonUInonIO_browser_threads) {
1056 non_ui_non_io_task_runner_traits 1056 non_ui_non_io_task_runner_traits
1057 .WithPriority(base::TaskPriority::BACKGROUND) 1057 .WithPriority(base::TaskPriority::USER_VISIBLE)
1058 .WithShutdownBehavior(base::TaskShutdownBehavior::BLOCK_SHUTDOWN); 1058 .WithShutdownBehavior(base::TaskShutdownBehavior::BLOCK_SHUTDOWN);
1059 } else { 1059 } else {
1060 thread_to_start = &file_thread_; 1060 thread_to_start = &file_thread_;
1061 options = io_message_loop_options; 1061 options = io_message_loop_options;
1062 options.timer_slack = base::TIMER_SLACK_MAXIMUM; 1062 options.timer_slack = base::TIMER_SLACK_MAXIMUM;
1063 } 1063 }
1064 #endif 1064 #endif
1065 break; 1065 break;
1066 case BrowserThread::PROCESS_LAUNCHER: 1066 case BrowserThread::PROCESS_LAUNCHER:
1067 TRACE_EVENT_BEGIN1("startup", 1067 TRACE_EVENT_BEGIN1("startup",
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
1789 if (!audio_manager_) { 1789 if (!audio_manager_) {
1790 audio_thread_ = base::MakeUnique<AudioManagerThread>(); 1790 audio_thread_ = base::MakeUnique<AudioManagerThread>();
1791 audio_manager_ = media::AudioManager::Create( 1791 audio_manager_ = media::AudioManager::Create(
1792 audio_thread_->task_runner(), audio_thread_->worker_task_runner(), 1792 audio_thread_->task_runner(), audio_thread_->worker_task_runner(),
1793 MediaInternals::GetInstance()); 1793 MediaInternals::GetInstance());
1794 } 1794 }
1795 CHECK(audio_manager_); 1795 CHECK(audio_manager_);
1796 } 1796 }
1797 1797
1798 } // namespace content 1798 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698