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

Unified Diff: net/test/embedded_test_server/request_handler_util.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/ssl/test_ssl_private_key.cc ('k') | net/test/url_request/url_request_hanging_read_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/embedded_test_server/request_handler_util.cc
diff --git a/net/test/embedded_test_server/request_handler_util.cc b/net/test/embedded_test_server/request_handler_util.cc
index b555578f2a00adde5771ee078e23e97fb0d3004c..8982efb8c0a7645687855e8eff3117f6b3a8fe8a 100644
--- a/net/test/embedded_test_server/request_handler_util.cc
+++ b/net/test/embedded_test_server/request_handler_util.cc
@@ -200,8 +200,7 @@ std::unique_ptr<HttpResponse> HandleFileRequest(
if (!base::ReadFileToString(headers_path, &headers_contents))
return nullptr;
- return base::WrapUnique(
- new RawHttpResponse(headers_contents, file_contents));
+ return base::MakeUnique<RawHttpResponse>(headers_contents, file_contents);
}
std::unique_ptr<BasicHttpResponse> http_response(new BasicHttpResponse);
« no previous file with comments | « net/ssl/test_ssl_private_key.cc ('k') | net/test/url_request/url_request_hanging_read_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698