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

Side by Side Diff: services/shell/standalone/context.cc

Issue 2077413009: Add TaskPriority as a parameter to SequencedWorkerPool in preparation for TaskScheduler experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2_hook
Patch Set: Created 4 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "services/shell/standalone/context.h" 5 #include "services/shell/standalone/context.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 tracer_.Start( 130 tracer_.Start(
131 command_line.GetSwitchValueASCII(::switches::kTraceStartup), 131 command_line.GetSwitchValueASCII(::switches::kTraceStartup),
132 command_line.GetSwitchValueASCII(::switches::kTraceStartupDuration), 132 command_line.GetSwitchValueASCII(::switches::kTraceStartupDuration),
133 "mojo_runner.trace"); 133 "mojo_runner.trace");
134 } 134 }
135 135
136 if (!init_params || init_params->init_edk) 136 if (!init_params || init_params->init_edk)
137 EnsureEmbedderIsInitialized(); 137 EnsureEmbedderIsInitialized();
138 138
139 shell_runner_ = base::ThreadTaskRunnerHandle::Get(); 139 shell_runner_ = base::ThreadTaskRunnerHandle::Get();
140 blocking_pool_ = 140 blocking_pool_ = new base::SequencedWorkerPool(
141 new base::SequencedWorkerPool(kMaxBlockingPoolThreads, "blocking_pool"); 141 kMaxBlockingPoolThreads, "blocking_pool", base::TaskPriority::BACKGROUND);
jam 2016/06/22 20:17:37 similarly, i don't think this should be priority.
gab 2016/06/22 21:08:56 Okay then everything but reading manifests should
142 142
143 init_edk_ = !init_params || init_params->init_edk; 143 init_edk_ = !init_params || init_params->init_edk;
144 if (init_edk_) { 144 if (init_edk_) {
145 mojo::edk::InitIPCSupport(this, io_thread_->task_runner().get()); 145 mojo::edk::InitIPCSupport(this, io_thread_->task_runner().get());
146 #if defined(OS_MACOSX) 146 #if defined(OS_MACOSX)
147 mojo::edk::SetMachPortProvider(MachBroker::GetInstance()->port_provider()); 147 mojo::edk::SetMachPortProvider(MachBroker::GetInstance()->port_provider());
148 #endif 148 #endif
149 } 149 }
150 150
151 std::unique_ptr<NativeRunnerFactory> runner_factory; 151 std::unique_ptr<NativeRunnerFactory> runner_factory;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 std::unique_ptr<ConnectParams> params(new ConnectParams); 256 std::unique_ptr<ConnectParams> params(new ConnectParams);
257 params->set_source(CreateShellIdentity()); 257 params->set_source(CreateShellIdentity());
258 params->set_target(Identity(name, mojom::kRootUserID)); 258 params->set_target(Identity(name, mojom::kRootUserID));
259 params->set_remote_interfaces(mojo::GetProxy(&remote_interfaces)); 259 params->set_remote_interfaces(mojo::GetProxy(&remote_interfaces));
260 params->set_local_interfaces(std::move(local_interfaces)); 260 params->set_local_interfaces(std::move(local_interfaces));
261 shell_->Connect(std::move(params)); 261 shell_->Connect(std::move(params));
262 } 262 }
263 263
264 } // namespace shell 264 } // namespace shell
OLDNEW
« content/browser/browser_thread_impl.cc ('K') | « net/ssl/ssl_platform_key_task_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698