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

Side by Side Diff: chrome/browser/extensions/extension_resource_protocols.cc

Issue 2257113002: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_resource_protocols.h" 5 #include "chrome/browser/extensions/extension_resource_protocols.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 net::URLRequestJob* 91 net::URLRequestJob*
92 ExtensionResourceProtocolHandler::MaybeCreateJob( 92 ExtensionResourceProtocolHandler::MaybeCreateJob(
93 net::URLRequest* request, net::NetworkDelegate* network_delegate) const { 93 net::URLRequest* request, net::NetworkDelegate* network_delegate) const {
94 return new ExtensionResourcesJob(request, network_delegate); 94 return new ExtensionResourcesJob(request, network_delegate);
95 } 95 }
96 96
97 } // namespace 97 } // namespace
98 98
99 std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler> 99 std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler>
100 CreateExtensionResourceProtocolHandler() { 100 CreateExtensionResourceProtocolHandler() {
101 return base::WrapUnique(new ExtensionResourceProtocolHandler()); 101 return base::MakeUnique<ExtensionResourceProtocolHandler>();
102 } 102 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_reenabler.cc ('k') | chrome/browser/extensions/extension_service_sync_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698