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

Unified Diff: remoting/signaling/xmpp_signal_strategy.h

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/xmpp_login_handler_unittest.cc ('k') | remoting/signaling/xmpp_signal_strategy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/xmpp_signal_strategy.h
diff --git a/remoting/signaling/xmpp_signal_strategy.h b/remoting/signaling/xmpp_signal_strategy.h
index 4743d9fb87b6308b1976134e668bd85555c76c04..bd06015aa80e7c9190ac7ab2bae9c832bcbdc4ff 100644
--- a/remoting/signaling/xmpp_signal_strategy.h
+++ b/remoting/signaling/xmpp_signal_strategy.h
@@ -7,10 +7,11 @@
#include "remoting/signaling/signal_strategy.h"
+#include <memory>
+
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
namespace net {
class ClientSocketFactory;
@@ -50,7 +51,7 @@ class XmppSignalStrategy : public SignalStrategy {
std::string GetLocalJid() const override;
void AddListener(Listener* listener) override;
void RemoveListener(Listener* listener) override;
- bool SendStanza(scoped_ptr<buzz::XmlElement> stanza) override;
+ bool SendStanza(std::unique_ptr<buzz::XmlElement> stanza) override;
std::string GetNextId() override;
// This method is used to update the auth info (for example when the OAuth
@@ -62,7 +63,7 @@ class XmppSignalStrategy : public SignalStrategy {
private:
class Core;
- scoped_ptr<Core> core_;
+ std::unique_ptr<Core> core_;
DISALLOW_COPY_AND_ASSIGN(XmppSignalStrategy);
};
« no previous file with comments | « remoting/signaling/xmpp_login_handler_unittest.cc ('k') | remoting/signaling/xmpp_signal_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698