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

Unified Diff: extensions/browser/api/cast_channel/cast_socket.cc

Issue 2036863002: Remove use of deprecated MessageLoop methods in extensions. (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 | extensions/browser/api/cast_channel/cast_socket_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/cast_channel/cast_socket.cc
diff --git a/extensions/browser/api/cast_channel/cast_socket.cc b/extensions/browser/api/cast_channel/cast_socket.cc
index 038bdceaf7c58bac6846d7b0c95d8569aa986cb2..0d33722a9f24a9a440bab585682887f5765ae330 100644
--- a/extensions/browser/api/cast_channel/cast_socket.cc
+++ b/extensions/browser/api/cast_channel/cast_socket.cc
@@ -13,12 +13,14 @@
#include "base/callback_helpers.h"
#include "base/format_macros.h"
#include "base/lazy_instance.h"
+#include "base/location.h"
#include "base/memory/ptr_util.h"
-#include "base/message_loop/message_loop.h"
#include "base/numerics/safe_conversions.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/sys_byteorder.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "extensions/browser/api/cast_channel/cast_auth_util.h"
#include "extensions/browser/api/cast_channel/cast_framer.h"
@@ -297,8 +299,8 @@ void CastSocketImpl::PostTaskToStartConnectLoop(int result) {
DCHECK(connect_loop_callback_.IsCancelled());
connect_loop_callback_.Reset(base::Bind(&CastSocketImpl::DoConnectLoop,
base::Unretained(this), result));
- base::MessageLoop::current()->PostTask(FROM_HERE,
- connect_loop_callback_.callback());
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, connect_loop_callback_.callback());
}
// This method performs the state machine transitions for connection flow.
« no previous file with comments | « no previous file | extensions/browser/api/cast_channel/cast_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698