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

Unified Diff: net/http/http_auth_handler_factory.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/bidirectional_stream_unittest.cc ('k') | net/http/http_auth_handler_negotiate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_handler_factory.cc
diff --git a/net/http/http_auth_handler_factory.cc b/net/http/http_auth_handler_factory.cc
index a30f7e62469f10a7d30a3ce02b46a1b21a8e6c93..8f7156297f96c22528ada085a5e13c9600dfd837 100644
--- a/net/http/http_auth_handler_factory.cc
+++ b/net/http/http_auth_handler_factory.cc
@@ -86,10 +86,10 @@ CreateAuthHandlerRegistryFactory(const HttpAuthPreferences& prefs,
HttpAuthHandlerNegotiate::Factory* negotiate_factory =
new HttpAuthHandlerNegotiate::Factory();
#if defined(OS_WIN)
- negotiate_factory->set_library(base::WrapUnique(new SSPILibraryDefault()));
+ negotiate_factory->set_library(base::MakeUnique<SSPILibraryDefault>());
#elif defined(OS_POSIX) && !defined(OS_ANDROID)
negotiate_factory->set_library(
- base::WrapUnique(new GSSAPISharedLibrary(prefs.GssapiLibraryName())));
+ base::MakeUnique<GSSAPISharedLibrary>(prefs.GssapiLibraryName()));
#endif // defined(OS_POSIX) && !defined(OS_ANDROID)
negotiate_factory->set_host_resolver(host_resolver);
registry_factory->RegisterSchemeFactory(kNegotiateAuthScheme,
« no previous file with comments | « net/http/bidirectional_stream_unittest.cc ('k') | net/http/http_auth_handler_negotiate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698