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

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

Issue 16136005: Update remaining files to use WeakPtr<T>::get() instead of "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: jingle/notifier/listener/xmpp_push_client.cc
diff --git a/jingle/notifier/listener/xmpp_push_client.cc b/jingle/notifier/listener/xmpp_push_client.cc
index 2227650a0b0e3b29ff1125477a4bce25599b1e6d..322b18537e93597554dac2f7c640e84222a65fcf 100644
--- a/jingle/notifier/listener/xmpp_push_client.cc
+++ b/jingle/notifier/listener/xmpp_push_client.cc
@@ -37,7 +37,7 @@ void XmppPushClient::OnConnect(
{
// Owned by |base_task_|.
PushNotificationsListenTask* listener =
- new PushNotificationsListenTask(base_task_, this);
+ new PushNotificationsListenTask(base_task_.get(), this);
listener->Start();
}
@@ -45,7 +45,8 @@ void XmppPushClient::OnConnect(
{
// Owned by |base_task_|.
PushNotificationsSubscribeTask* subscribe_task =
- new PushNotificationsSubscribeTask(base_task_, subscriptions_, this);
+ new PushNotificationsSubscribeTask(
+ base_task_.get(), subscriptions_, this);
subscribe_task->Start();
}
@@ -147,7 +148,7 @@ void XmppPushClient::SendNotification(const Notification& notification) {
}
// Owned by |base_task_|.
PushNotificationsSendUpdateTask* task =
- new PushNotificationsSendUpdateTask(base_task_, notification);
+ new PushNotificationsSendUpdateTask(base_task_.get(), notification);
task->Start();
}
@@ -158,7 +159,7 @@ void XmppPushClient::SendPing() {
return;
}
// Owned by |base_task_|.
- SendPingTask* task = new SendPingTask(base_task_, this);
+ SendPingTask* task = new SendPingTask(base_task_.get(), this);
task->Start();
}

Powered by Google App Engine
This is Rietveld 408576698