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

Unified Diff: remoting/host/security_key/remote_security_key_message_handler.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
Index: remoting/host/security_key/remote_security_key_message_handler.cc
diff --git a/remoting/host/security_key/remote_security_key_message_handler.cc b/remoting/host/security_key/remote_security_key_message_handler.cc
index cd981baab952f362bdbe8a6eacef6d4f55b3c14b..e27e9cdc17085bf333c20e7ebb3b9ba2d0b872eb 100644
--- a/remoting/host/security_key/remote_security_key_message_handler.cc
+++ b/remoting/host/security_key/remote_security_key_message_handler.cc
@@ -25,7 +25,7 @@ RemoteSecurityKeyMessageHandler::~RemoteSecurityKeyMessageHandler() {}
void RemoteSecurityKeyMessageHandler::Start(
base::File message_read_stream,
base::File message_write_stream,
- scoped_ptr<RemoteSecurityKeyIpcClient> ipc_client,
+ std::unique_ptr<RemoteSecurityKeyIpcClient> ipc_client,
const base::Closure& error_callback) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(message_read_stream.IsValid());
@@ -56,19 +56,19 @@ void RemoteSecurityKeyMessageHandler::Start(
}
void RemoteSecurityKeyMessageHandler::SetRemoteSecurityKeyMessageReaderForTest(
- scoped_ptr<RemoteSecurityKeyMessageReader> reader) {
+ std::unique_ptr<RemoteSecurityKeyMessageReader> reader) {
DCHECK(!reader_);
reader_ = std::move(reader);
}
void RemoteSecurityKeyMessageHandler::SetRemoteSecurityKeyMessageWriterForTest(
- scoped_ptr<RemoteSecurityKeyMessageWriter> writer) {
+ std::unique_ptr<RemoteSecurityKeyMessageWriter> writer) {
DCHECK(!writer_);
writer_ = std::move(writer);
}
void RemoteSecurityKeyMessageHandler::ProcessRemoteSecurityKeyMessage(
- scoped_ptr<SecurityKeyMessage> message) {
+ std::unique_ptr<SecurityKeyMessage> message) {
DCHECK(thread_checker_.CalledOnValidThread());
RemoteSecurityKeyMessageType message_type = message->type();

Powered by Google App Engine
This is Rietveld 408576698