| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/security_state/core/security_state_ui.h" |
| 6 |
| 7 namespace security_state { |
| 8 |
| 9 bool ShouldAlwaysShowIcon(SecurityLevel security_level) { |
| 10 // Enumerate all |SecurityLevel| values for compile-time enforcement that all |
| 11 // cases are explicitly handled. |
| 12 switch (security_level) { |
| 13 case NONE: |
| 14 return false; |
| 15 case HTTP_SHOW_WARNING: |
| 16 case EV_SECURE: |
| 17 case SECURE: |
| 18 case SECURITY_WARNING: |
| 19 case SECURE_WITH_POLICY_INSTALLED_CERT: |
| 20 case DANGEROUS: |
| 21 return true; |
| 22 } |
| 23 NOTREACHED(); |
| 24 return false; |
| 25 } |
| 26 |
| 27 } // namespace security_state |
| OLD | NEW |