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

Unified Diff: net/socket/fuzzed_socket_factory.cc

Issue 2259823002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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 | « net/server/web_socket_encoder.cc ('k') | net/spdy/bidirectional_stream_spdy_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/fuzzed_socket_factory.cc
diff --git a/net/socket/fuzzed_socket_factory.cc b/net/socket/fuzzed_socket_factory.cc
index eb8ae861edd9799d02d4035c359032d08b700950..34bf18c350551aaeac8a553f23dfe21b64afc4b1 100644
--- a/net/socket/fuzzed_socket_factory.cc
+++ b/net/socket/fuzzed_socket_factory.cc
@@ -136,7 +136,7 @@ FuzzedSocketFactory::CreateDatagramClientSocket(
const RandIntCallback& rand_int_cb,
NetLog* net_log,
const NetLog::Source& source) {
- return base::WrapUnique(new FuzzedDatagramClientSocket(data_provider_));
+ return base::MakeUnique<FuzzedDatagramClientSocket>(data_provider_);
}
std::unique_ptr<StreamSocket> FuzzedSocketFactory::CreateTransportClientSocket(
@@ -157,7 +157,7 @@ std::unique_ptr<SSLClientSocket> FuzzedSocketFactory::CreateSSLClientSocket(
const HostPortPair& host_and_port,
const SSLConfig& ssl_config,
const SSLClientSocketContext& context) {
- return base::WrapUnique(new FailingSSLClientSocket());
+ return base::MakeUnique<FailingSSLClientSocket>();
}
void FuzzedSocketFactory::ClearSSLSessionCache() {}
« no previous file with comments | « net/server/web_socket_encoder.cc ('k') | net/spdy/bidirectional_stream_spdy_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698