Index: net/socket/ssl_client_socket_openssl.cc |
diff --git a/net/socket/ssl_client_socket_openssl.cc b/net/socket/ssl_client_socket_openssl.cc |
index cfad9deeba2a2981115cfc13664f878413d77e11..03e33ad3ec2a229dd45e4c66f1185e24763d01b4 100644 |
--- a/net/socket/ssl_client_socket_openssl.cc |
+++ b/net/socket/ssl_client_socket_openssl.cc |
@@ -118,7 +118,7 @@ bool EVP_MDToPrivateKeyHash(const EVP_MD* md, SSLPrivateKey::Hash* hash) { |
} |
} |
-scoped_ptr<base::Value> NetLogPrivateKeyOperationCallback( |
+std::unique_ptr<base::Value> NetLogPrivateKeyOperationCallback( |
SSLPrivateKey::Type type, |
SSLPrivateKey::Hash hash, |
NetLogCaptureMode mode) { |
@@ -151,17 +151,17 @@ scoped_ptr<base::Value> NetLogPrivateKeyOperationCallback( |
break; |
} |
- scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue); |
+ std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue); |
value->SetString("type", type_str); |
value->SetString("hash", hash_str); |
return std::move(value); |
} |
-scoped_ptr<base::Value> NetLogChannelIDLookupCallback( |
+std::unique_ptr<base::Value> NetLogChannelIDLookupCallback( |
ChannelIDService* channel_id_service, |
NetLogCaptureMode capture_mode) { |
ChannelIDStore* store = channel_id_service->GetChannelIDStore(); |
- scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
+ std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
dict->SetBoolean("ephemeral", store->IsEphemeral()); |
dict->SetString("service", base::HexEncode(&channel_id_service, |
sizeof(channel_id_service))); |
@@ -169,11 +169,11 @@ scoped_ptr<base::Value> NetLogChannelIDLookupCallback( |
return std::move(dict); |
} |
-scoped_ptr<base::Value> NetLogChannelIDLookupCompleteCallback( |
+std::unique_ptr<base::Value> NetLogChannelIDLookupCompleteCallback( |
crypto::ECPrivateKey* key, |
int result, |
NetLogCaptureMode capture_mode) { |
- scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
+ std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
dict->SetInteger("net_error", result); |
std::string raw_key; |
if (result == OK && key && key->ExportRawPublicKey(&raw_key)) { |
@@ -360,7 +360,7 @@ class SSLClientSocketOpenSSL::SSLContext { |
ScopedSSL_CTX ssl_ctx_; |
#if !defined(OS_NACL) |
- scoped_ptr<SSLKeyLogger> ssl_key_logger_; |
+ std::unique_ptr<SSLKeyLogger> ssl_key_logger_; |
#endif |
// TODO(davidben): Use a separate cache per URLRequestContext. |
@@ -468,7 +468,7 @@ void SSLClientSocket::ClearSessionCache() { |
} |
SSLClientSocketOpenSSL::SSLClientSocketOpenSSL( |
- scoped_ptr<ClientSocketHandle> transport_socket, |
+ std::unique_ptr<ClientSocketHandle> transport_socket, |
const HostPortPair& host_and_port, |
const SSLConfig& ssl_config, |
const SSLClientSocketContext& context) |