OLD | NEW |
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/ui/webui/options2/certificate_manager_handler.h" | 5 #include "chrome/browser/ui/webui/options2/certificate_manager_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 case net::ERR_IMPORT_CERT_ALREADY_EXISTS: | 102 case net::ERR_IMPORT_CERT_ALREADY_EXISTS: |
103 return l10n_util::GetStringUTF8( | 103 return l10n_util::GetStringUTF8( |
104 IDS_CERT_MANAGER_ERROR_CERT_ALREADY_EXISTS); | 104 IDS_CERT_MANAGER_ERROR_CERT_ALREADY_EXISTS); |
105 default: | 105 default: |
106 return l10n_util::GetStringUTF8(IDS_CERT_MANAGER_UNKNOWN_ERROR); | 106 return l10n_util::GetStringUTF8(IDS_CERT_MANAGER_UNKNOWN_ERROR); |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
110 } // namespace | 110 } // namespace |
111 | 111 |
112 namespace options2 { | 112 namespace options { |
113 | 113 |
114 /////////////////////////////////////////////////////////////////////////////// | 114 /////////////////////////////////////////////////////////////////////////////// |
115 // CertIdMap | 115 // CertIdMap |
116 | 116 |
117 class CertIdMap { | 117 class CertIdMap { |
118 public: | 118 public: |
119 CertIdMap() {} | 119 CertIdMap() {} |
120 ~CertIdMap() {} | 120 ~CertIdMap() {} |
121 | 121 |
122 std::string CertToId(net::X509Certificate* cert); | 122 std::string CertToId(net::X509Certificate* cert); |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1084 call_status == chromeos::DBUS_METHOD_CALL_SUCCESS && is_tpm_token_ready); | 1084 call_status == chromeos::DBUS_METHOD_CALL_SUCCESS && is_tpm_token_ready); |
1085 web_ui()->CallJavascriptFunction("CertificateManager.onCheckTpmTokenReady", | 1085 web_ui()->CallJavascriptFunction("CertificateManager.onCheckTpmTokenReady", |
1086 ready); | 1086 ready); |
1087 } | 1087 } |
1088 #endif | 1088 #endif |
1089 | 1089 |
1090 gfx::NativeWindow CertificateManagerHandler::GetParentWindow() const { | 1090 gfx::NativeWindow CertificateManagerHandler::GetParentWindow() const { |
1091 return web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(); | 1091 return web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(); |
1092 } | 1092 } |
1093 | 1093 |
1094 } // namespace options2 | 1094 } // namespace options |
OLD | NEW |