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/chrome_security_state_model_client.h" | 5 #include "chrome/browser/ssl/chrome_security_state_model_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
| 10 #include "build/build_config.h" |
10 #include "chrome/browser/chromeos/policy/policy_cert_service.h" | 11 #include "chrome/browser/chromeos/policy/policy_cert_service.h" |
11 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" | 12 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" |
12 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
13 #include "content/public/browser/cert_store.h" | 14 #include "content/public/browser/cert_store.h" |
14 #include "content/public/browser/navigation_entry.h" | 15 #include "content/public/browser/navigation_entry.h" |
15 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
16 #include "content/public/common/origin_util.h" | 17 #include "content/public/common/origin_util.h" |
17 #include "content/public/common/ssl_status.h" | 18 #include "content/public/common/ssl_status.h" |
18 #include "net/cert/x509_certificate.h" | 19 #include "net/cert/x509_certificate.h" |
19 | 20 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 for (const auto& sct : ssl.signed_certificate_timestamp_ids) | 111 for (const auto& sct : ssl.signed_certificate_timestamp_ids) |
111 state->sct_verify_statuses.push_back(sct.status); | 112 state->sct_verify_statuses.push_back(sct.status); |
112 state->displayed_mixed_content = | 113 state->displayed_mixed_content = |
113 (ssl.content_status & content::SSLStatus::DISPLAYED_INSECURE_CONTENT) | 114 (ssl.content_status & content::SSLStatus::DISPLAYED_INSECURE_CONTENT) |
114 ? true | 115 ? true |
115 : false; | 116 : false; |
116 state->ran_mixed_content = | 117 state->ran_mixed_content = |
117 (ssl.content_status & content::SSLStatus::RAN_INSECURE_CONTENT) ? true | 118 (ssl.content_status & content::SSLStatus::RAN_INSECURE_CONTENT) ? true |
118 : false; | 119 : false; |
119 } | 120 } |
OLD | NEW |