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

Unified Diff: ios/crnet/crnet_environment.mm

Issue 2256193002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « ios/chrome/browser/web_data_service_factory.cc ('k') | ios/net/cookies/cookie_store_ios_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/crnet/crnet_environment.mm
diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm
index 33f4160888e5f9877fddc237fde1d8fc2bf17544..15c146a7c8345970efa5a1d3367061c14a75830c 100644
--- a/ios/crnet/crnet_environment.mm
+++ b/ios/crnet/crnet_environment.mm
@@ -473,8 +473,8 @@ void CrNetEnvironment::InitializeOnNetworkThread() {
"data", base::WrapUnique(new net::DataProtocolHandler));
#if !defined(DISABLE_FILE_SUPPORT)
job_factory->SetProtocolHandler(
- "file", base::WrapUnique(
- new net::FileProtocolHandler(file_thread_->task_runner())));
+ "file",
+ base::MakeUnique<net::FileProtocolHandler>(file_thread_->task_runner()));
#endif // !defined(DISABLE_FILE_SUPPORT)
main_context_->set_job_factory(job_factory);
« no previous file with comments | « ios/chrome/browser/web_data_service_factory.cc ('k') | ios/net/cookies/cookie_store_ios_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698