| 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/dom_ui/options/advanced_options_utils.h" | 5 #include "chrome/browser/dom_ui/options/advanced_options_utils.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <cryptuiapi.h> | 8 #include <cryptuiapi.h> |
| 9 #pragma comment(lib, "cryptui.lib") | 9 #pragma comment(lib, "cryptui.lib") |
| 10 #include <shellapi.h> | 10 #include <shellapi.h> |
| 11 | 11 |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/thread.h" | 14 #include "base/threading/thread.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/tab_contents/tab_contents.h" | 16 #include "chrome/browser/tab_contents/tab_contents.h" |
| 17 #include "chrome/browser/tab_contents/tab_contents_view.h" | 17 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 18 | 18 |
| 19 // A helper method that opens the Internet Options control panel dialog with | 19 // A helper method that opens the Internet Options control panel dialog with |
| 20 // the Connections tab selected. | 20 // the Connections tab selected. |
| 21 class OpenConnectionDialogTask : public Task { | 21 class OpenConnectionDialogTask : public Task { |
| 22 public: | 22 public: |
| 23 OpenConnectionDialogTask() {} | 23 OpenConnectionDialogTask() {} |
| 24 | 24 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 } | 58 } |
| 59 | 59 |
| 60 void AdvancedOptionsUtilities::ShowManageSSLCertificates( | 60 void AdvancedOptionsUtilities::ShowManageSSLCertificates( |
| 61 TabContents* tab_contents) { | 61 TabContents* tab_contents) { |
| 62 CRYPTUI_CERT_MGR_STRUCT cert_mgr = { 0 }; | 62 CRYPTUI_CERT_MGR_STRUCT cert_mgr = { 0 }; |
| 63 cert_mgr.dwSize = sizeof(CRYPTUI_CERT_MGR_STRUCT); | 63 cert_mgr.dwSize = sizeof(CRYPTUI_CERT_MGR_STRUCT); |
| 64 cert_mgr.hwndParent = | 64 cert_mgr.hwndParent = |
| 65 tab_contents->view()->GetTopLevelNativeWindow(); | 65 tab_contents->view()->GetTopLevelNativeWindow(); |
| 66 ::CryptUIDlgCertMgr(&cert_mgr); | 66 ::CryptUIDlgCertMgr(&cert_mgr); |
| 67 } | 67 } |
| OLD | NEW |