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

Side by Side Diff: chrome/browser/ssl/ssl_client_auth_requestor_mock.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky 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/ssl/ssl_client_auth_requestor_mock.h" 5 #include "chrome/browser/ssl/ssl_client_auth_requestor_mock.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "content/public/browser/client_certificate_delegate.h" 9 #include "content/public/browser/client_certificate_delegate.h"
10 #include "net/ssl/ssl_cert_request_info.h" 10 #include "net/ssl/ssl_cert_request_info.h"
(...skipping 29 matching lines...) Expand all
40 SSLClientAuthRequestorMock::SSLClientAuthRequestorMock( 40 SSLClientAuthRequestorMock::SSLClientAuthRequestorMock(
41 net::URLRequest* request, 41 net::URLRequest* request,
42 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info) 42 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info)
43 : cert_request_info_(cert_request_info) { 43 : cert_request_info_(cert_request_info) {
44 } 44 }
45 45
46 SSLClientAuthRequestorMock::~SSLClientAuthRequestorMock() {} 46 SSLClientAuthRequestorMock::~SSLClientAuthRequestorMock() {}
47 47
48 std::unique_ptr<content::ClientCertificateDelegate> 48 std::unique_ptr<content::ClientCertificateDelegate>
49 SSLClientAuthRequestorMock::CreateDelegate() { 49 SSLClientAuthRequestorMock::CreateDelegate() {
50 return base::WrapUnique(new FakeClientCertificateDelegate(this)); 50 return base::MakeUnique<FakeClientCertificateDelegate>(this);
51 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698