| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/security_state/content/content_utils.h" | 5 #include "components/security_state/content/content_utils.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 !!security_info.certificate)); | 299 !!security_info.certificate)); |
| 300 } | 300 } |
| 301 } | 301 } |
| 302 | 302 |
| 303 AddConnectionExplanation(security_info, security_style_explanations); | 303 AddConnectionExplanation(security_info, security_style_explanations); |
| 304 | 304 |
| 305 security_style_explanations->pkp_bypassed = security_info.pkp_bypassed; | 305 security_style_explanations->pkp_bypassed = security_info.pkp_bypassed; |
| 306 if (security_info.pkp_bypassed) { | 306 if (security_info.pkp_bypassed) { |
| 307 security_style_explanations->info_explanations.push_back( | 307 security_style_explanations->info_explanations.push_back( |
| 308 content::SecurityStyleExplanation( | 308 content::SecurityStyleExplanation( |
| 309 "Public-Key Pinning Bypassed", | 309 l10n_util::GetStringUTF8(IDS_PRIVATE_KEY_PINNING_BYPASSED), |
| 310 "Public-key pinning was bypassed by a local root certificate.")); | 310 l10n_util::GetStringUTF8( |
| 311 IDS_PRIVATE_KEY_PINNING_BYPASSED_DESCRIPTION))); |
| 311 } | 312 } |
| 312 | 313 |
| 313 return security_style; | 314 return security_style; |
| 314 } | 315 } |
| 315 | 316 |
| 316 } // namespace security_state | 317 } // namespace security_state |
| OLD | NEW |