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

Unified Diff: remoting/host/security_key/security_key_message.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
Index: remoting/host/security_key/security_key_message.h
diff --git a/remoting/host/security_key/security_key_message.h b/remoting/host/security_key/security_key_message.h
index 1074a4a2148c41b07d7dec609699beb968c9c112..cdf67c509684cd8f0a7a00ed9763d2f335296785 100644
--- a/remoting/host/security_key/security_key_message.h
+++ b/remoting/host/security_key/security_key_message.h
@@ -6,11 +6,11 @@
#define REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_MESSAGE_H_
#include <cstdint>
+#include <memory>
#include <string>
#include "base/callback_forward.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
namespace remoting {
@@ -118,7 +118,7 @@ class SecurityKeyMessage final {
// Creates a message from the passed in values, no validation is done as this
// method is only expected to be called from test code.
- static scoped_ptr<SecurityKeyMessage> CreateMessageForTest(
+ static std::unique_ptr<SecurityKeyMessage> CreateMessageForTest(
RemoteSecurityKeyMessageType type,
const std::string& payload);
@@ -138,7 +138,7 @@ class SecurityKeyMessage final {
};
// Used to pass remote security key message data between classes.
-typedef base::Callback<void(scoped_ptr<SecurityKeyMessage> message)>
+typedef base::Callback<void(std::unique_ptr<SecurityKeyMessage> message)>
SecurityKeyMessageCallback;
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698