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

Unified Diff: blimp/net/blimp_message_output_buffer.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 | « no previous file | blimp/net/blob_channel/blob_channel_integration_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_message_output_buffer.cc
diff --git a/blimp/net/blimp_message_output_buffer.cc b/blimp/net/blimp_message_output_buffer.cc
index e80a8ae18a6d6e0f8563da4a5ab22d0bcde93f92..8167bf20c30a9f3b1c708665ee4e458cb1a16dc7 100644
--- a/blimp/net/blimp_message_output_buffer.cc
+++ b/blimp/net/blimp_message_output_buffer.cc
@@ -6,9 +6,11 @@
#include <algorithm>
+#include "base/location.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
-#include "base/message_loop/message_loop.h"
+#include "base/single_thread_task_runner.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "blimp/common/logging.h"
#include "blimp/common/proto/blimp_message.pb.h"
#include "net/base/net_errors.h"
@@ -104,7 +106,7 @@ void BlimpMessageOutputBuffer::OnMessageCheckpoint(int64_t message_id) {
<< " (max=" << current_buffer_size_bytes_ << ")";
if (!ack_entry.callback.is_null()) {
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(ack_entry.callback, net::OK));
}
« no previous file with comments | « no previous file | blimp/net/blob_channel/blob_channel_integration_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698