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

Unified Diff: content/browser/loader/navigation_url_loader_unittest.cc

Issue 2256173002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace a WrapUnique() nested inside a MakeUnique() 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
Index: content/browser/loader/navigation_url_loader_unittest.cc
diff --git a/content/browser/loader/navigation_url_loader_unittest.cc b/content/browser/loader/navigation_url_loader_unittest.cc
index 66725370591858c7966c8f0b1f4e761e7c102c0a..2536e151483e988e09fe26cff82f617443debb9d 100644
--- a/content/browser/loader/navigation_url_loader_unittest.cc
+++ b/content/browser/loader/navigation_url_loader_unittest.cc
@@ -93,9 +93,8 @@ class NavigationURLLoaderTest : public testing::Test {
job_factory_.SetProtocolHandler(
"test", net::URLRequestTestJob::CreateProtocolHandler());
job_factory_.SetProtocolHandler(
- "blob",
- base::WrapUnique(new StreamProtocolHandler(
- StreamContext::GetFor(browser_context_.get())->registry())));
+ "blob", base::MakeUnique<StreamProtocolHandler>(
+ StreamContext::GetFor(browser_context_.get())->registry()));
request_context->set_job_factory(&job_factory_);
// NavigationURLLoader is only used for browser-side navigations.
« no previous file with comments | « content/browser/loader/async_revalidation_driver_unittest.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698