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

Unified Diff: jingle/notifier/listener/non_blocking_push_client.cc

Issue 2283373002: Remove unneeded scoped_refptr<>::get() on method binding (Closed)
Patch Set: Created 4 years, 4 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 | « ipc/ipc_sync_channel.cc ('k') | net/base/test_completion_callback_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/listener/non_blocking_push_client.cc
diff --git a/jingle/notifier/listener/non_blocking_push_client.cc b/jingle/notifier/listener/non_blocking_push_client.cc
index 65cf7447d1c1655a38d1f73b9c1079e817ce26c3..4596657aa63b369c4c09b331c668c5a36b97a152 100644
--- a/jingle/notifier/listener/non_blocking_push_client.cc
+++ b/jingle/notifier/listener/non_blocking_push_client.cc
@@ -161,7 +161,7 @@ NonBlockingPushClient::NonBlockingPushClient(
delegate_task_runner_->PostTask(
FROM_HERE,
base::Bind(&NonBlockingPushClient::Core::CreateOnDelegateThread,
- core_.get(), create_blocking_push_client_callback));
+ core_, create_blocking_push_client_callback));
}
NonBlockingPushClient::~NonBlockingPushClient() {
@@ -169,7 +169,7 @@ NonBlockingPushClient::~NonBlockingPushClient() {
delegate_task_runner_->PostTask(
FROM_HERE,
base::Bind(&NonBlockingPushClient::Core::DestroyOnDelegateThread,
- core_.get()));
+ core_));
}
void NonBlockingPushClient::AddObserver(PushClientObserver* observer) {
@@ -188,7 +188,7 @@ void NonBlockingPushClient::UpdateSubscriptions(
delegate_task_runner_->PostTask(
FROM_HERE,
base::Bind(&NonBlockingPushClient::Core::UpdateSubscriptions,
- core_.get(), subscriptions));
+ core_, subscriptions));
}
void NonBlockingPushClient::UpdateCredentials(
@@ -197,7 +197,7 @@ void NonBlockingPushClient::UpdateCredentials(
delegate_task_runner_->PostTask(
FROM_HERE,
base::Bind(&NonBlockingPushClient::Core::UpdateCredentials,
- core_.get(), email, token));
+ core_, email, token));
}
void NonBlockingPushClient::SendNotification(
@@ -205,7 +205,7 @@ void NonBlockingPushClient::SendNotification(
DCHECK(thread_checker_.CalledOnValidThread());
delegate_task_runner_->PostTask(
FROM_HERE,
- base::Bind(&NonBlockingPushClient::Core::SendNotification, core_.get(),
+ base::Bind(&NonBlockingPushClient::Core::SendNotification, core_,
notification));
}
@@ -213,7 +213,7 @@ void NonBlockingPushClient::SendPing() {
DCHECK(thread_checker_.CalledOnValidThread());
delegate_task_runner_->PostTask(
FROM_HERE,
- base::Bind(&NonBlockingPushClient::Core::SendPing, core_.get()));
+ base::Bind(&NonBlockingPushClient::Core::SendPing, core_));
}
void NonBlockingPushClient::OnNotificationsEnabled() {
« no previous file with comments | « ipc/ipc_sync_channel.cc ('k') | net/base/test_completion_callback_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698