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

Unified Diff: remoting/signaling/push_notification_subscriber.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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 | « remoting/signaling/push_notification_subscriber.h ('k') | remoting/signaling/server_log_entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/push_notification_subscriber.cc
diff --git a/remoting/signaling/push_notification_subscriber.cc b/remoting/signaling/push_notification_subscriber.cc
index f0b666206ad9e2cef830664d9f2488db52fbcb73..0984df66054c138a3a7daa4151c24668b84794e7 100644
--- a/remoting/signaling/push_notification_subscriber.cc
+++ b/remoting/signaling/push_notification_subscriber.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/callback.h"
+#include "base/memory/ptr_util.h"
#include "remoting/base/logging.h"
#include "remoting/signaling/iq_sender.h"
#include "remoting/signaling/jid_util.h"
@@ -72,7 +73,7 @@ void PushNotificationSubscriber::Subscribe(const Subscription& subscription) {
// Send the request.
iq_sender_.reset(new IqSender(signal_strategy_));
iq_request_ = iq_sender_->SendIq(
- "set", bare_jid, make_scoped_ptr(subscribe_element),
+ "set", bare_jid, base::WrapUnique(subscribe_element),
base::Bind(&PushNotificationSubscriber::OnSubscriptionResult,
base::Unretained(this)));
}
« no previous file with comments | « remoting/signaling/push_notification_subscriber.h ('k') | remoting/signaling/server_log_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698