OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/captive_portal_blocking_page.h" | 5 #include "chrome/browser/ssl/captive_portal_blocking_page.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "build/build_config.h" |
14 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" | 15 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" |
15 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/ssl/cert_report_helper.h" | 17 #include "chrome/browser/ssl/cert_report_helper.h" |
17 #include "chrome/browser/ssl/ssl_cert_reporter.h" | 18 #include "chrome/browser/ssl/ssl_cert_reporter.h" |
18 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
19 #include "components/captive_portal/captive_portal_detector.h" | 20 #include "components/captive_portal/captive_portal_detector.h" |
20 #include "components/certificate_reporting/error_reporter.h" | 21 #include "components/certificate_reporting/error_reporter.h" |
21 #include "components/security_interstitials/core/controller_client.h" | 22 #include "components/security_interstitials/core/controller_client.h" |
22 #include "components/url_formatter/url_formatter.h" | 23 #include "components/url_formatter/url_formatter.h" |
23 #include "components/wifi/wifi_service.h" | 24 #include "components/wifi/wifi_service.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 certificate_reporting::ErrorReport::USER_DID_NOT_PROCEED); | 221 certificate_reporting::ErrorReport::USER_DID_NOT_PROCEED); |
221 } | 222 } |
222 | 223 |
223 // Need to explicity deny the certificate via the callback, otherwise memory | 224 // Need to explicity deny the certificate via the callback, otherwise memory |
224 // is leaked. | 225 // is leaked. |
225 if (!callback_.is_null()) { | 226 if (!callback_.is_null()) { |
226 callback_.Run(false); | 227 callback_.Run(false); |
227 callback_.Reset(); | 228 callback_.Reset(); |
228 } | 229 } |
229 } | 230 } |
OLD | NEW |