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

Unified Diff: ash/mus/bridge/wm_shell_mus.cc

Issue 2318223003: mash: Migrate wallpaper controllers to ash/common. (Closed)
Patch Set: Cleanup. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: ash/mus/bridge/wm_shell_mus.cc
diff --git a/ash/mus/bridge/wm_shell_mus.cc b/ash/mus/bridge/wm_shell_mus.cc
index 78959a48aad559e9114e08841a787df655b60d2d..47470e1ae676168096fab17c03d59a641554dcf9 100644
--- a/ash/mus/bridge/wm_shell_mus.cc
+++ b/ash/mus/bridge/wm_shell_mus.cc
@@ -113,7 +113,11 @@ WmShellMus::WmShellMus(
: WmShell(std::move(shell_delegate)),
window_manager_(window_manager),
pointer_watcher_event_router_(pointer_watcher_event_router),
- session_state_delegate_(new SessionStateDelegateStub) {
+ session_state_delegate_(new SessionStateDelegateStub),
+ blocking_pool_(
+ new base::SequencedWorkerPool(3,
James Cook 2016/09/07 21:27:05 Do you need to call blocking_pool_->Shutdown()? A
msw 2016/09/07 22:28:24 Done; that fixes mash_unittests. I'll also ask Sco
sky 2016/09/08 04:15:22 I believe you want to make it so you can inject a
msw 2016/09/08 19:52:15 Done; I moved Shell::blocking_pool_ to WmShell, ma
+ "MashBlocking",
+ base::TaskPriority::USER_VISIBLE)) {
window_tree_client()->AddObserver(this);
WmShell::Set(this);
@@ -406,6 +410,10 @@ bool WmShellMus::IsTouchDown() {
return false;
}
+base::SequencedWorkerPool* WmShellMus::GetBlockingPool() {
+ return blocking_pool_.get();
+}
+
#if defined(OS_CHROMEOS)
void WmShellMus::ToggleIgnoreExternalKeyboard() {
NOTIMPLEMENTED();

Powered by Google App Engine
This is Rietveld 408576698