OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/page_info_window.h" | 5 #include "chrome/browser/views/page_info_window.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/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
12 #include "base/time_format.h" | 13 #include "base/time_format.h" |
13 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/cert_store.h" | 15 #include "chrome/browser/cert_store.h" |
15 #include "chrome/browser/history/history.h" | 16 #include "chrome/browser/history/history.h" |
16 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profile.h" |
17 #include "chrome/browser/ssl/ssl_manager.h" | 18 #include "chrome/browser/ssl/ssl_manager.h" |
18 #include "chrome/browser/views/standard_layout.h" | 19 #include "chrome/browser/views/standard_layout.h" |
19 #include "chrome/common/l10n_util.h" | |
20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
21 #include "chrome/common/pref_service.h" | 21 #include "chrome/common/pref_service.h" |
22 #include "chrome/common/win_util.h" | 22 #include "chrome/common/win_util.h" |
23 #include "chrome/views/background.h" | 23 #include "chrome/views/background.h" |
24 #include "chrome/views/grid_layout.h" | 24 #include "chrome/views/grid_layout.h" |
25 #include "chrome/views/controls/button/native_button.h" | 25 #include "chrome/views/controls/button/native_button.h" |
26 #include "chrome/views/controls/image_view.h" | 26 #include "chrome/views/controls/image_view.h" |
27 #include "chrome/views/controls/label.h" | 27 #include "chrome/views/controls/label.h" |
28 #include "chrome/views/controls/separator.h" | 28 #include "chrome/views/controls/separator.h" |
29 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 // Search the cert store that 'cert' is in when building the cert chain. | 676 // Search the cert store that 'cert' is in when building the cert chain. |
677 HCERTSTORE cert_store = view_info.pCertContext->hCertStore; | 677 HCERTSTORE cert_store = view_info.pCertContext->hCertStore; |
678 view_info.cStores = 1; | 678 view_info.cStores = 1; |
679 view_info.rghStores = &cert_store; | 679 view_info.rghStores = &cert_store; |
680 BOOL properties_changed; | 680 BOOL properties_changed; |
681 | 681 |
682 // This next call blocks but keeps processing windows messages, making it | 682 // This next call blocks but keeps processing windows messages, making it |
683 // modal to the browser window. | 683 // modal to the browser window. |
684 BOOL rv = ::CryptUIDlgViewCertificate(&view_info, &properties_changed); | 684 BOOL rv = ::CryptUIDlgViewCertificate(&view_info, &properties_changed); |
685 } | 685 } |
OLD | NEW |