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

Unified Diff: blimp/net/stream_packet_writer.cc

Issue 2034703003: Remove use of deprecated MessageLoop methods in blimp. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « blimp/net/stream_packet_reader.cc ('k') | blimp/net/tcp_engine_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/stream_packet_writer.cc
diff --git a/blimp/net/stream_packet_writer.cc b/blimp/net/stream_packet_writer.cc
index 55cd29e911f3227114cc10b5cec678748df37f30..984487c7d99cb5074c1aa229a809d9f3d2e313b4 100644
--- a/blimp/net/stream_packet_writer.cc
+++ b/blimp/net/stream_packet_writer.cc
@@ -7,10 +7,12 @@
#include <iostream>
#include "base/callback_helpers.h"
+#include "base/location.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
-#include "base/message_loop/message_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/sys_byteorder.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "blimp/common/proto/blimp_message.pb.h"
#include "blimp/net/blimp_connection_statistics.h"
#include "blimp/net/common.h"
@@ -73,8 +75,8 @@ void StreamPacketWriter::WritePacket(
payload_buffer_ = nullptr;
// Adapt synchronous completion to an asynchronous style.
- base::MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(callback, result));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ base::Bind(callback, result));
} else {
callback_ = callback;
}
« no previous file with comments | « blimp/net/stream_packet_reader.cc ('k') | blimp/net/tcp_engine_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698