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

Unified Diff: content/common/gpu/gpu_channel_manager_unittest.cc

Issue 1134113002: content/common: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CrOS build. Created 5 years, 7 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
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager_unittest.cc
diff --git a/content/common/gpu/gpu_channel_manager_unittest.cc b/content/common/gpu/gpu_channel_manager_unittest.cc
index 5f190f4c4913a3b5491afcefa2e083007ac0cdc5..2388a2e984bb51fce2dfceacfe29403d74f88a60 100644
--- a/content/common/gpu/gpu_channel_manager_unittest.cc
+++ b/content/common/gpu/gpu_channel_manager_unittest.cc
@@ -44,7 +44,7 @@ class SimpleWorker : public Listener, public Sender {
virtual void Shutdown() {
WaitableEvent ipc_done(false, false);
- ipc_thread_.message_loop()->PostTask(
+ ipc_thread_.task_runner()->PostTask(
FROM_HERE, base::Bind(&SimpleWorker::OnShutdown, this, &ipc_done));
channel_.reset();
@@ -56,8 +56,8 @@ class SimpleWorker : public Listener, public Sender {
protected:
SyncChannel* CreateChannel() {
scoped_ptr<SyncChannel> channel = SyncChannel::Create(
- channel_name_, mode_, this, ipc_thread_.message_loop_proxy().get(),
- true, &shutdown_event_);
+ channel_name_, mode_, this, ipc_thread_.task_runner().get(), true,
+ &shutdown_event_);
return channel.release();
}
@@ -111,11 +111,8 @@ class SimpleGpuClient : public IPC::SimpleWorker {
void Start() override {
IPC::SimpleWorker::Start();
gpu_channel_manager_.reset(
- new GpuChannelManager(&router_,
- NULL,
- ipc_thread().message_loop_proxy().get(),
- shutdown_event(),
- channel()));
+ new GpuChannelManager(&router_, NULL, ipc_thread().task_runner().get(),
+ shutdown_event(), channel()));
}
void Shutdown() override {
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698