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

Unified Diff: webrtc/libjingle/xmpp/pingtask.cc

Issue 1935893002: Replace scoped_ptr with unique_ptr in webrtc/libjingle/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 | « webrtc/libjingle/xmpp/mucroomlookuptask.cc ('k') | webrtc/libjingle/xmpp/pubsub_task.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/libjingle/xmpp/pingtask.cc
diff --git a/webrtc/libjingle/xmpp/pingtask.cc b/webrtc/libjingle/xmpp/pingtask.cc
index 479dc23ff5c1a9c21fc380591754d28730f337b5..3df7b8570aedc11dc0fb8daa7113f5229707d33c 100644
--- a/webrtc/libjingle/xmpp/pingtask.cc
+++ b/webrtc/libjingle/xmpp/pingtask.cc
@@ -10,9 +10,10 @@
#include "webrtc/libjingle/xmpp/pingtask.h"
+#include <memory>
+
#include "webrtc/libjingle/xmpp/constants.h"
#include "webrtc/base/logging.h"
-#include "webrtc/base/scoped_ptr.h"
namespace buzz {
@@ -66,7 +67,7 @@ int PingTask::ProcessStart() {
// Send a ping if it's time.
if (now >= next_ping_time_) {
- rtc::scoped_ptr<buzz::XmlElement> stanza(
+ std::unique_ptr<buzz::XmlElement> stanza(
MakeIq(buzz::STR_GET, Jid(STR_EMPTY), task_id()));
stanza->AddElement(new buzz::XmlElement(QN_PING));
SendStanza(stanza.get());
« no previous file with comments | « webrtc/libjingle/xmpp/mucroomlookuptask.cc ('k') | webrtc/libjingle/xmpp/pubsub_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698