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; |
} |