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

Unified Diff: content/browser/cache_storage/cache_storage.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/cache_storage/cache_storage.cc
diff --git a/content/browser/cache_storage/cache_storage.cc b/content/browser/cache_storage/cache_storage.cc
index 7bba199f0d6f1e90831824a73175b0a74e496014..ec6723e8ee2588b4f05173eecbd6472049a26e70 100644
--- a/content/browser/cache_storage/cache_storage.cc
+++ b/content/browser/cache_storage/cache_storage.cc
@@ -892,7 +892,7 @@ void CacheStorage::MatchAllCachesImpl(
DCHECK(cache_handle);
CacheStorageCache* cache_ptr = cache_handle->value();
- cache_ptr->Match(base::WrapUnique(new ServiceWorkerFetchRequest(*request)),
+ cache_ptr->Match(base::MakeUnique<ServiceWorkerFetchRequest>(*request),
match_params,
base::Bind(&CacheStorage::MatchAllCachesDidMatch,
weak_factory_.GetWeakPtr(),
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698