| 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/ssl_add_cert_handler.h" | 5 #include "chrome/browser/ssl/ssl_add_cert_handler.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/browser_list.h" | 10 #include "chrome/browser/browser_list.h" |
| 10 #include "chrome/browser/browser.h" | 11 #include "chrome/browser/browser.h" |
| 11 #include "chrome/browser/browser_window.h" | 12 #include "chrome/browser/browser_window.h" |
| 12 #include "chrome/browser/chrome_thread.h" | 13 #include "chrome/browser/chrome_thread.h" |
| 13 #include "chrome/browser/platform_util.h" | 14 #include "chrome/browser/platform_util.h" |
| 14 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 15 #include "net/base/cert_database.h" | 16 #include "net/base/cert_database.h" |
| 16 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
| 17 #include "net/base/x509_certificate.h" | 18 #include "net/base/x509_certificate.h" |
| 18 #include "net/url_request/url_request.h" | 19 #include "net/url_request/url_request.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 Release(); | 68 Release(); |
| 68 } | 69 } |
| 69 | 70 |
| 70 void SSLAddCertHandler::ShowError(const string16& error) { | 71 void SSLAddCertHandler::ShowError(const string16& error) { |
| 71 Browser* browser = BrowserList::GetLastActive(); | 72 Browser* browser = BrowserList::GetLastActive(); |
| 72 platform_util::SimpleErrorBox( | 73 platform_util::SimpleErrorBox( |
| 73 browser ? browser->window()->GetNativeHandle() : NULL, | 74 browser ? browser->window()->GetNativeHandle() : NULL, |
| 74 l10n_util::GetStringUTF16(IDS_ADD_CERT_FAILURE_TITLE), | 75 l10n_util::GetStringUTF16(IDS_ADD_CERT_FAILURE_TITLE), |
| 75 error); | 76 error); |
| 76 } | 77 } |
| OLD | NEW |