OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_client_certificate_selector.h" | 5 #include "chrome/browser/ssl_client_certificate_selector.h" |
6 | 6 |
7 #include <cryptuiapi.h> | 7 #include <cryptuiapi.h> |
8 #pragma comment(lib, "cryptui.lib") | 8 #pragma comment(lib, "cryptui.lib") |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/browser_list.h" | 13 #include "chrome/browser/browser_list.h" |
13 #include "chrome/browser/browser.h" | 14 #include "chrome/browser/browser.h" |
14 #include "chrome/browser/browser_window.h" | 15 #include "chrome/browser/browser_window.h" |
15 #include "chrome/browser/chrome_thread.h" | 16 #include "chrome/browser/chrome_thread.h" |
16 #include "chrome/browser/ssl/ssl_client_auth_handler.h" | 17 #include "chrome/browser/ssl/ssl_client_auth_handler.h" |
17 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
18 #include "net/url_request/url_request.h" | 19 #include "net/url_request/url_request.h" |
19 | 20 |
20 namespace browser { | 21 namespace browser { |
21 | 22 |
(...skipping 30 matching lines...) Expand all Loading... |
52 net::X509Certificate::FreeOSCertHandle(cert_context); | 53 net::X509Certificate::FreeOSCertHandle(cert_context); |
53 } | 54 } |
54 | 55 |
55 ok = CertCloseStore(client_certs, CERT_CLOSE_STORE_CHECK_FLAG); | 56 ok = CertCloseStore(client_certs, CERT_CLOSE_STORE_CHECK_FLAG); |
56 DCHECK(ok); | 57 DCHECK(ok); |
57 | 58 |
58 delegate->CertificateSelected(cert); | 59 delegate->CertificateSelected(cert); |
59 } | 60 } |
60 | 61 |
61 } // namespace browser | 62 } // namespace browser |
OLD | NEW |