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

Side by Side Diff: extensions/shell/browser/shell_url_request_context_getter.cc

Issue 2252373002: 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 unified diff | Download patch
« no previous file with comments | « extensions/shell/browser/shell_native_app_window_aura_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/shell/browser/shell_url_request_context_getter.h" 5 #include "extensions/shell/browser/shell_url_request_context_getter.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "content/public/browser/resource_request_info.h" 10 #include "content/public/browser/resource_request_info.h"
(...skipping 20 matching lines...) Expand all
31 std::move(request_interceptors), 31 std::move(request_interceptors),
32 net_log), 32 net_log),
33 browser_context_(browser_context), 33 browser_context_(browser_context),
34 extension_info_map_(extension_info_map) {} 34 extension_info_map_(extension_info_map) {}
35 35
36 ShellURLRequestContextGetter::~ShellURLRequestContextGetter() { 36 ShellURLRequestContextGetter::~ShellURLRequestContextGetter() {
37 } 37 }
38 38
39 std::unique_ptr<net::NetworkDelegate> 39 std::unique_ptr<net::NetworkDelegate>
40 ShellURLRequestContextGetter::CreateNetworkDelegate() { 40 ShellURLRequestContextGetter::CreateNetworkDelegate() {
41 return base::WrapUnique( 41 return base::MakeUnique<ShellNetworkDelegate>(browser_context_,
42 new ShellNetworkDelegate(browser_context_, extension_info_map_)); 42 extension_info_map_);
43 } 43 }
44 44
45 } // namespace extensions 45 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_native_app_window_aura_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698