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

Side by Side Diff: ash/sysui/sysui_application.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ash/sysui/sysui_application.h" 5 #include "ash/sysui/sysui_application.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 return native_widget; 197 return native_widget;
198 } 198 }
199 199
200 DISALLOW_COPY_AND_ASSIGN(NativeWidgetFactory); 200 DISALLOW_COPY_AND_ASSIGN(NativeWidgetFactory);
201 }; 201 };
202 202
203 } // namespace 203 } // namespace
204 204
205 class AshInit { 205 class AshInit {
206 public: 206 public:
207 AshInit() : worker_pool_(new base::SequencedWorkerPool(2, "AshWorkerPool")) { 207 AshInit()
208 : worker_pool_(
209 new base::SequencedWorkerPool(2,
210 "AshWorkerPool",
211 base::TaskPriority::USER_BLOCKING)) {
208 ui::RegisterPathProvider(); 212 ui::RegisterPathProvider();
209 } 213 }
210 214
211 ~AshInit() { worker_pool_->Shutdown(); } 215 ~AshInit() { worker_pool_->Shutdown(); }
212 216
213 aura::Window* root() { return Shell::GetPrimaryRootWindow(); } 217 aura::Window* root() { return Shell::GetPrimaryRootWindow(); }
214 218
215 void Initialize(::shell::Connector* connector, 219 void Initialize(::shell::Connector* connector,
216 const ::shell::Identity& identity) { 220 const ::shell::Identity& identity) {
217 InitializeResourceBundle(connector); 221 InitializeResourceBundle(connector);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 mojom::WallpaperControllerRequest request) { 335 mojom::WallpaperControllerRequest request) {
332 mojom::WallpaperController* wallpaper_controller = 336 mojom::WallpaperController* wallpaper_controller =
333 static_cast<UserWallpaperDelegateMus*>( 337 static_cast<UserWallpaperDelegateMus*>(
334 Shell::GetInstance()->user_wallpaper_delegate()); 338 Shell::GetInstance()->user_wallpaper_delegate());
335 wallpaper_controller_bindings_.AddBinding(wallpaper_controller, 339 wallpaper_controller_bindings_.AddBinding(wallpaper_controller,
336 std::move(request)); 340 std::move(request));
337 } 341 }
338 342
339 } // namespace sysui 343 } // namespace sysui
340 } // namespace ash 344 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | base/test/sequenced_worker_pool_owner.cc » ('j') | chrome/service/service_process.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698