| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/bad_clock_blocking_page.h" | 5 #include "chrome/browser/ssl/bad_clock_blocking_page.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/memory/ptr_util.h" |
| 10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 11 #include "chrome/browser/interstitials/chrome_controller_client.h" | 12 #include "chrome/browser/interstitials/chrome_controller_client.h" |
| 12 #include "chrome/browser/interstitials/chrome_metrics_helper.h" | 13 #include "chrome/browser/interstitials/chrome_metrics_helper.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/renderer_preferences_util.h" | 15 #include "chrome/browser/renderer_preferences_util.h" |
| 15 #include "chrome/browser/ssl/cert_report_helper.h" | 16 #include "chrome/browser/ssl/cert_report_helper.h" |
| 16 #include "chrome/browser/ssl/ssl_cert_reporter.h" | 17 #include "chrome/browser/ssl/ssl_cert_reporter.h" |
| 17 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 18 #include "components/safe_browsing_db/safe_browsing_prefs.h" |
| 18 #include "components/security_interstitials/core/bad_clock_ui.h" | 19 #include "components/security_interstitials/core/bad_clock_ui.h" |
| 19 #include "components/security_interstitials/core/metrics_helper.h" | 20 #include "components/security_interstitials/core/metrics_helper.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 void BadClockBlockingPage::NotifyDenyCertificate() { | 172 void BadClockBlockingPage::NotifyDenyCertificate() { |
| 172 // It's possible that callback_ may not exist if the user clicks "Proceed" | 173 // It's possible that callback_ may not exist if the user clicks "Proceed" |
| 173 // followed by pressing the back button before the interstitial is hidden. | 174 // followed by pressing the back button before the interstitial is hidden. |
| 174 // In that case the certificate will still be treated as allowed. | 175 // In that case the certificate will still be treated as allowed. |
| 175 if (callback_.is_null()) | 176 if (callback_.is_null()) |
| 176 return; | 177 return; |
| 177 | 178 |
| 178 base::ResetAndReturn(&callback_) | 179 base::ResetAndReturn(&callback_) |
| 179 .Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL); | 180 .Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL); |
| 180 } | 181 } |
| OLD | NEW |