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

Unified Diff: content/browser/resource_context_impl.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/resource_context_impl.cc
diff --git a/content/browser/resource_context_impl.cc b/content/browser/resource_context_impl.cc
index cd1b684f13c44464680602d35f15b6efe37783fe..22c12ee987d1f67c7a39b0dc326d7ad7d0a09812 100644
--- a/content/browser/resource_context_impl.cc
+++ b/content/browser/resource_context_impl.cc
@@ -47,8 +47,8 @@ void ResourceContext::CreateKeygenHandler(
const std::string& challenge_string,
const GURL& url,
const base::Callback<void(std::unique_ptr<net::KeygenHandler>)>& callback) {
- callback.Run(base::WrapUnique(
- new net::KeygenHandler(key_size_in_bits, challenge_string, url)));
+ callback.Run(base::MakeUnique<net::KeygenHandler>(key_size_in_bits,
+ challenge_string, url));
}
// static

Powered by Google App Engine
This is Rietveld 408576698