Commit 150aceff authored by ashlin.j's avatar ashlin.j Committed by Commit bot

[jingle] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle

Replace MessageLoopProxy usage with ThreadTaskRunnerHandle in jingle module.

MessageLoopProxy is deprecated.
This basically does a search and replace of:

MessageLoopProxy::current() -> ThreadTaskRunnerHandle::Get().

MessageLoopProxy -> SingleThreadTaskRunner

BUG=391045

Review URL: https://codereview.chromium.org/1128793002

Cr-Commit-Position: refs/heads/master@{#330740}
parent 692444f7
......@@ -59,6 +59,7 @@ Arun Mankuzhi <arun.m@samsung.com>
Arunoday Sarkar <a.sarkar.arun@gmail.com>
Arunprasad Rajkumar <ararunprasad@gmail.com>
Arunprasad Rajkumar <arurajku@cisco.com>
Ashlin Joseph <ashlin.j@samsung.com>
Attila Dusnoki <dati91@gmail.com>
Avinaash Doreswamy <avi.nitk@samsung.com>
Balazs Kelemen <b.kelemen@samsung.com>
......
......@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/message_loop/message_loop.h"
#include "base/thread_task_runner_handle.h"
#include "net/base/test_completion_callback.h"
#include "net/dns/mock_host_resolver.h"
#include "net/proxy/proxy_service.h"
......@@ -36,7 +37,7 @@ class ProxyResolvingClientSocketTest : public testing::Test {
protected:
ProxyResolvingClientSocketTest()
: url_request_context_getter_(new net::TestURLRequestContextGetter(
base::MessageLoopProxy::current(),
base::ThreadTaskRunnerHandle::Get(),
scoped_ptr<net::TestURLRequestContext>(
new MyTestURLRequestContext))) {}
......
......@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/thread_task_runner_handle.h"
#include "jingle/notifier/base/const_communicator.h"
#include "jingle/notifier/base/fake_base_task.h"
#include "jingle/notifier/communicator/login_settings.h"
......@@ -82,7 +83,7 @@ class SingleLoginAttemptTest : public ::testing::Test {
: login_settings_(
buzz::XmppClientSettings(),
new net::TestURLRequestContextGetter(
base::MessageLoopProxy::current(),
base::ThreadTaskRunnerHandle::Get(),
scoped_ptr<net::TestURLRequestContext>(
new MyTestURLRequestContext())),
ServerList(
......
......@@ -7,7 +7,7 @@
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/message_loop/message_loop_proxy.h"
#include "base/thread_task_runner_handle.h"
#include "jingle/notifier/listener/push_client_observer.h"
namespace notifier {
......@@ -63,7 +63,7 @@ class NonBlockingPushClient::Core
NonBlockingPushClient::Core::Core(
const scoped_refptr<base::SingleThreadTaskRunner>& delegate_task_runner,
const base::WeakPtr<NonBlockingPushClient>& parent_push_client)
: parent_task_runner_(base::MessageLoopProxy::current()),
: parent_task_runner_(base::ThreadTaskRunnerHandle::Get()),
delegate_task_runner_(delegate_task_runner),
parent_push_client_(parent_push_client) {}
......
......@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/thread_task_runner_handle.h"
#include "jingle/notifier/base/fake_base_task.h"
#include "jingle/notifier/listener/fake_push_client.h"
#include "jingle/notifier/listener/fake_push_client_observer.h"
......@@ -29,7 +30,7 @@ class NonBlockingPushClientTest : public testing::Test {
void SetUp() override {
push_client_.reset(
new NonBlockingPushClient(
base::MessageLoopProxy::current(),
base::ThreadTaskRunnerHandle::Get(),
base::Bind(&NonBlockingPushClientTest::CreateFakePushClient,
base::Unretained(this))));
push_client_->AddObserver(&fake_observer_);
......
......@@ -5,7 +5,6 @@
#include "jingle/notifier/listener/xmpp_push_client.h"
#include "base/logging.h"
#include "base/message_loop/message_loop_proxy.h"
#include "jingle/notifier/base/notifier_options_util.h"
#include "jingle/notifier/listener/push_client_observer.h"
#include "jingle/notifier/listener/send_ping_task.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment