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

Unified Diff: ui/aura/window_tree_host.cc

Issue 516173002: ui: Replace MessageLoopProxy usage with ThreadTaskRunnerHandle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: ui/aura/window_tree_host.cc
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
index 315f8e9b2651b6622c78038036184a73c4251fcc..bbe52fc33a6f495f33592fe27591edef151415b3 100644
--- a/ui/aura/window_tree_host.cc
+++ b/ui/aura/window_tree_host.cc
@@ -5,7 +5,7 @@
#include "ui/aura/window_tree_host.h"
#include "base/debug/trace_event.h"
-#include "base/message_loop/message_loop.h"
+#include "base/thread_task_runner_handle.h"
#include "ui/aura/client/capture_client.h"
#include "ui/aura/client/cursor_client.h"
#include "ui/aura/env.h"
@@ -207,7 +207,7 @@ void WindowTreeHost::CreateCompositor(
compositor_.reset(
new ui::Compositor(GetAcceleratedWidget(),
context_factory,
- base::MessageLoopProxy::current()));
+ base::ThreadTaskRunnerHandle::Get()));
// TODO(beng): I think this setup should probably all move to a "accelerated
// widget available" function.
if (!dispatcher()) {

Powered by Google App Engine
This is Rietveld 408576698