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

Unified Diff: remoting/protocol/authenticator.cc

Issue 9240033: Use scoped_ptr<>.Pass() to pass ownership in the remoting protocol code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 11 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: remoting/protocol/authenticator.cc
diff --git a/remoting/protocol/authenticator.cc b/remoting/protocol/authenticator.cc
index 23f77e1adf49f3cddd326f041e7b9617ecbee575..168af76902d33f6d4217d2398600f4d13a5c7cf2 100644
--- a/remoting/protocol/authenticator.cc
+++ b/remoting/protocol/authenticator.cc
@@ -21,8 +21,9 @@ bool Authenticator::IsAuthenticatorMessage(const buzz::XmlElement* message) {
}
// static
-buzz::XmlElement* Authenticator::CreateEmptyAuthenticatorMessage() {
- return new buzz::XmlElement(kAuthenticationQName);
+scoped_ptr<buzz::XmlElement> Authenticator::CreateEmptyAuthenticatorMessage() {
+ return scoped_ptr<buzz::XmlElement>(
+ new buzz::XmlElement(kAuthenticationQName));
}
// static

Powered by Google App Engine
This is Rietveld 408576698