| 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/ssl/ssl_add_certificate.h" | 5 #include "chrome/browser/ssl/ssl_add_certificate.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 // Show the appropriate infobar. | 206 // Show the appropriate infobar. |
| 207 if (cert_error != net::OK) { | 207 if (cert_error != net::OK) { |
| 208 BrowserThread::PostTask( | 208 BrowserThread::PostTask( |
| 209 BrowserThread::UI, FROM_HERE, | 209 BrowserThread::UI, FROM_HERE, |
| 210 base::Bind(&ShowErrorInfoBar, IDS_ADD_CERT_ERR_FAILED, | 210 base::Bind(&ShowErrorInfoBar, IDS_ADD_CERT_ERR_FAILED, |
| 211 render_process_id, render_frame_id, cert_error)); | 211 render_process_id, render_frame_id, cert_error)); |
| 212 } else { | 212 } else { |
| 213 BrowserThread::PostTask( | 213 BrowserThread::PostTask( |
| 214 BrowserThread::UI, FROM_HERE, | 214 BrowserThread::UI, FROM_HERE, |
| 215 base::Bind(&ShowSuccessInfoBar, | 215 base::Bind(&ShowSuccessInfoBar, render_process_id, render_frame_id, |
| 216 render_process_id, render_frame_id, cert)); | 216 base::RetainedRef(cert))); |
| 217 } | 217 } |
| 218 } | 218 } |
| 219 | 219 |
| 220 } // namespace chrome | 220 } // namespace chrome |
| OLD | NEW |