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

Unified Diff: remoting/host/security_key/security_key_message.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/host/security_key/security_key_message.h ('k') | remoting/host/server_log_entry_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/security_key/security_key_message.cc
diff --git a/remoting/host/security_key/security_key_message.cc b/remoting/host/security_key/security_key_message.cc
index 0b8b343bfdd0c7125dbeb6086287f00809f8936e..77614bb9ba8fb7e8d179b4ba60d3a73fe64b3916 100644
--- a/remoting/host/security_key/security_key_message.cc
+++ b/remoting/host/security_key/security_key_message.cc
@@ -5,12 +5,12 @@
#include "remoting/host/security_key/security_key_message.h"
#include <cstdint>
+#include <memory>
#include <string>
#include <utility>
#include "base/callback.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
namespace {
@@ -55,10 +55,10 @@ RemoteSecurityKeyMessageType SecurityKeyMessage::MessageTypeFromValue(
}
}
-scoped_ptr<SecurityKeyMessage> SecurityKeyMessage::CreateMessageForTest(
+std::unique_ptr<SecurityKeyMessage> SecurityKeyMessage::CreateMessageForTest(
RemoteSecurityKeyMessageType type,
const std::string& payload) {
- scoped_ptr<SecurityKeyMessage> message(new SecurityKeyMessage());
+ std::unique_ptr<SecurityKeyMessage> message(new SecurityKeyMessage());
message->type_ = type;
message->payload_ = payload;
@@ -84,4 +84,4 @@ bool SecurityKeyMessage::ParseMessage(const std::string& message_data) {
return true;
}
-} // namespace remoting
+} // namespace remoting
« no previous file with comments | « remoting/host/security_key/security_key_message.h ('k') | remoting/host/server_log_entry_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698