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

Unified Diff: net/ftp/ftp_network_layer.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/dns/host_resolver_impl_unittest.cc ('k') | net/http/bidirectional_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ftp/ftp_network_layer.cc
diff --git a/net/ftp/ftp_network_layer.cc b/net/ftp/ftp_network_layer.cc
index bc9c25a0b7fb430ca2dbb676bc33ac094577a84a..2c11fc7b5bac901f7cb534938d179dc3577b4e39 100644
--- a/net/ftp/ftp_network_layer.cc
+++ b/net/ftp/ftp_network_layer.cc
@@ -23,8 +23,8 @@ std::unique_ptr<FtpTransaction> FtpNetworkLayer::CreateTransaction() {
if (suspended_)
return std::unique_ptr<FtpTransaction>();
- return base::WrapUnique(new FtpNetworkTransaction(
- session_->host_resolver(), ClientSocketFactory::GetDefaultFactory()));
+ return base::MakeUnique<FtpNetworkTransaction>(
+ session_->host_resolver(), ClientSocketFactory::GetDefaultFactory());
}
void FtpNetworkLayer::Suspend(bool suspend) {
« no previous file with comments | « net/dns/host_resolver_impl_unittest.cc ('k') | net/http/bidirectional_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698