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

Unified Diff: remoting/host/server_log_entry.h

Issue 9720019: Use scoped_ptr<> to pass ownership in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 9 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/host/server_log_entry.h
diff --git a/remoting/host/server_log_entry.h b/remoting/host/server_log_entry.h
index 3353569efe177fbcc855dfdeb82803ad8b25adc7..a1c090ccd6f0120c7373b0624095e8a124e841cf 100644
--- a/remoting/host/server_log_entry.h
+++ b/remoting/host/server_log_entry.h
@@ -8,6 +8,8 @@
#include <map>
#include <string>
+#include "base/memory/scoped_ptr.h"
+
namespace buzz {
class XmlElement;
} // namespace buzz
@@ -35,8 +37,7 @@ class ServerLogEntry {
void AddModeField(Mode mode);
// Converts this object to an XML stanza.
- // The caller takes ownership of the stanza.
- buzz::XmlElement* ToStanza() const;
+ scoped_ptr<buzz::XmlElement> ToStanza() const;
private:
typedef std::map<std::string, std::string> ValuesMap;

Powered by Google App Engine
This is Rietveld 408576698