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/ssl/ssl_error_info.h" | 5 #include "chrome/browser/ssl/ssl_error_info.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "base/string_util.h" | 8 #include "base/string_util.h" |
8 #include "chrome/browser/cert_store.h" | 9 #include "chrome/browser/cert_store.h" |
9 #include "chrome/common/l10n_util.h" | |
10 #include "chrome/common/time_format.h" | 10 #include "chrome/common/time_format.h" |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 #include "grit/chromium_strings.h" | 12 #include "grit/chromium_strings.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "net/base/cert_status_flags.h" | 14 #include "net/base/cert_status_flags.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
16 #include "net/base/ssl_info.h" | 16 #include "net/base/ssl_info.h" |
17 | 17 |
18 SSLErrorInfo::SSLErrorInfo(const std::wstring& title, | 18 SSLErrorInfo::SSLErrorInfo(const std::wstring& title, |
19 const std::wstring& details, | 19 const std::wstring& details, |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 if (!cert.get()) { | 239 if (!cert.get()) { |
240 bool r = CertStore::GetSharedInstance()->RetrieveCert(cert_id, &cert); | 240 bool r = CertStore::GetSharedInstance()->RetrieveCert(cert_id, &cert); |
241 DCHECK(r); | 241 DCHECK(r); |
242 } | 242 } |
243 if (errors) | 243 if (errors) |
244 errors->push_back(SSLErrorInfo::CreateError(kErrorTypes[i], cert, url)); | 244 errors->push_back(SSLErrorInfo::CreateError(kErrorTypes[i], cert, url)); |
245 } | 245 } |
246 } | 246 } |
247 return count; | 247 return count; |
248 } | 248 } |
OLD | NEW |