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_blocking_page.h" | 5 #include "chrome/browser/ssl/ssl_blocking_page.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram_macros.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
17 #include "chrome/browser/interstitials/chrome_controller_client.h" | 17 #include "chrome/browser/interstitials/chrome_controller_client.h" |
18 #include "chrome/browser/interstitials/chrome_metrics_helper.h" | 18 #include "chrome/browser/interstitials/chrome_metrics_helper.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/renderer_preferences_util.h" | 20 #include "chrome/browser/renderer_preferences_util.h" |
21 #include "chrome/browser/ssl/cert_report_helper.h" | 21 #include "chrome/browser/ssl/cert_report_helper.h" |
22 #include "chrome/browser/ssl/ssl_cert_reporter.h" | 22 #include "chrome/browser/ssl/ssl_cert_reporter.h" |
23 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
268 // static | 268 // static |
269 bool SSLBlockingPage::IsOverridable(int options_mask, | 269 bool SSLBlockingPage::IsOverridable(int options_mask, |
270 const Profile* const profile) { | 270 const Profile* const profile) { |
271 const bool is_overridable = | 271 const bool is_overridable = |
272 (options_mask & SSLErrorUI::SOFT_OVERRIDE_ENABLED) && | 272 (options_mask & SSLErrorUI::SOFT_OVERRIDE_ENABLED) && |
273 !(options_mask & SSLErrorUI::STRICT_ENFORCEMENT) && | 273 !(options_mask & SSLErrorUI::STRICT_ENFORCEMENT) && |
274 profile->GetPrefs()->GetBoolean(prefs::kSSLErrorOverrideAllowed); | 274 profile->GetPrefs()->GetBoolean(prefs::kSSLErrorOverrideAllowed); |
275 return is_overridable; | 275 return is_overridable; |
276 } | 276 } |
OLD | NEW |