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

Unified Diff: net/dns/dns_session.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/disk_cache/simple/simple_backend_impl.cc ('k') | net/dns/dns_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_session.cc
diff --git a/net/dns/dns_session.cc b/net/dns/dns_session.cc
index 98acea23c4793fb6825f01ea7d8059f8edc1724c..16fc5d1b2e213e45d74383f93798a985a1e4bf3e 100644
--- a/net/dns/dns_session.cc
+++ b/net/dns/dns_session.cc
@@ -134,8 +134,8 @@ void DnsSession::UpdateTimeouts(NetworkChangeNotifier::ConnectionType type) {
void DnsSession::InitializeServerStats() {
server_stats_.clear();
for (size_t i = 0; i < config_.nameservers.size(); ++i) {
- server_stats_.push_back(base::WrapUnique(
- new ServerStats(initial_timeout_, rtt_buckets_.Pointer())));
+ server_stats_.push_back(base::MakeUnique<ServerStats>(
+ initial_timeout_, rtt_buckets_.Pointer()));
}
}
« no previous file with comments | « net/disk_cache/simple/simple_backend_impl.cc ('k') | net/dns/dns_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698