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

Unified Diff: remoting/host/security_key/gnubby_extension_session.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/gnubby_extension_session.cc
diff --git a/remoting/host/security_key/gnubby_extension_session.cc b/remoting/host/security_key/gnubby_extension_session.cc
index d53338cfa67b44d33823e85904ae59bc186b9956..ee3c92e418275c4bb1b053495a6319cde9e7838b 100644
--- a/remoting/host/security_key/gnubby_extension_session.cc
+++ b/remoting/host/security_key/gnubby_extension_session.cc
@@ -84,7 +84,7 @@ bool GnubbyExtensionSession::OnExtensionMessage(
return false;
}
- scoped_ptr<base::Value> value = base::JSONReader::Read(message.data());
+ std::unique_ptr<base::Value> value = base::JSONReader::Read(message.data());
base::DictionaryValue* client_message;
if (!value || !value->GetAsDictionary(&client_message)) {
LOG(WARNING) << "Failed to retrieve data from gnubby-auth message.";
@@ -179,7 +179,7 @@ void GnubbyExtensionSession::SendMessageToClient(
request.SetString(kMessageType, kDataMessage);
request.SetInteger(kConnectionId, connection_id);
- scoped_ptr<base::ListValue> bytes(new base::ListValue());
+ std::unique_ptr<base::ListValue> bytes(new base::ListValue());
for (std::string::const_iterator i = data.begin(); i != data.end(); ++i) {
bytes->AppendInteger(static_cast<unsigned char>(*i));
}
@@ -196,7 +196,7 @@ void GnubbyExtensionSession::SendMessageToClient(
}
void GnubbyExtensionSession::SetGnubbyAuthHandlerForTesting(
- scoped_ptr<GnubbyAuthHandler> gnubby_auth_handler) {
+ std::unique_ptr<GnubbyAuthHandler> gnubby_auth_handler) {
DCHECK(gnubby_auth_handler);
gnubby_auth_handler_ = std::move(gnubby_auth_handler);
« no previous file with comments | « remoting/host/security_key/gnubby_extension_session.h ('k') | remoting/host/security_key/gnubby_extension_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698