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

Unified Diff: remoting/protocol/authenticator.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/protocol/authenticator.h ('k') | remoting/protocol/authenticator_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/authenticator.cc
diff --git a/remoting/protocol/authenticator.cc b/remoting/protocol/authenticator.cc
index 03e176a0c0d1fa70531907f6b2d712732a8fbd78..372bb1aeb06852ca5fa38f79804757a467569b42 100644
--- a/remoting/protocol/authenticator.cc
+++ b/remoting/protocol/authenticator.cc
@@ -4,6 +4,7 @@
#include "remoting/protocol/authenticator.h"
+#include "base/memory/ptr_util.h"
#include "remoting/base/constants.h"
#include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
@@ -21,8 +22,9 @@ bool Authenticator::IsAuthenticatorMessage(const buzz::XmlElement* message) {
}
// static
-scoped_ptr<buzz::XmlElement> Authenticator::CreateEmptyAuthenticatorMessage() {
- return make_scoped_ptr(new buzz::XmlElement(kAuthenticationQName));
+std::unique_ptr<buzz::XmlElement>
+Authenticator::CreateEmptyAuthenticatorMessage() {
+ return base::WrapUnique(new buzz::XmlElement(kAuthenticationQName));
}
// static
« no previous file with comments | « remoting/protocol/authenticator.h ('k') | remoting/protocol/authenticator_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698