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

Unified Diff: net/log/net_log_unittest.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/http/transport_security_state.cc ('k') | net/proxy/dhcp_proxy_script_fetcher_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/net_log_unittest.cc
diff --git a/net/log/net_log_unittest.cc b/net/log/net_log_unittest.cc
index 11ec5ee64382073000a3e4f3055b49001c7842e2..d321b1ac2e5356c6e001cf433d6fe130e674bb52 100644
--- a/net/log/net_log_unittest.cc
+++ b/net/log/net_log_unittest.cc
@@ -43,8 +43,8 @@ int CaptureModeToInt(NetLogCaptureMode capture_mode) {
std::unique_ptr<base::Value> CaptureModeToValue(
NetLogCaptureMode capture_mode) {
- return base::WrapUnique(
- new base::FundamentalValue(CaptureModeToInt(capture_mode)));
+ return base::MakeUnique<base::FundamentalValue>(
+ CaptureModeToInt(capture_mode));
}
std::unique_ptr<base::Value> NetCaptureModeCallback(
« no previous file with comments | « net/http/transport_security_state.cc ('k') | net/proxy/dhcp_proxy_script_fetcher_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698