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

Side by Side Diff: extensions/browser/extension_protocols.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/browser/extension_prefs.cc ('k') | extensions/browser/extension_throttle_manager.cc » ('j') | 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/browser/extension_protocols.h" 5 #include "extensions/browser/extension_protocols.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 raw_headers.append("cache-control: no-cache"); 580 raw_headers.append("cache-control: no-cache");
581 } 581 }
582 582
583 raw_headers.append(2, '\0'); 583 raw_headers.append(2, '\0');
584 return new net::HttpResponseHeaders(raw_headers); 584 return new net::HttpResponseHeaders(raw_headers);
585 } 585 }
586 586
587 std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler> 587 std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler>
588 CreateExtensionProtocolHandler(bool is_incognito, 588 CreateExtensionProtocolHandler(bool is_incognito,
589 extensions::InfoMap* extension_info_map) { 589 extensions::InfoMap* extension_info_map) {
590 return base::WrapUnique( 590 return base::MakeUnique<ExtensionProtocolHandler>(is_incognito,
591 new ExtensionProtocolHandler(is_incognito, extension_info_map)); 591 extension_info_map);
592 } 592 }
593 593
594 } // namespace extensions 594 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | extensions/browser/extension_throttle_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698