Chromium Code Reviews| 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 // We enumerate all |SecurityLevel| values for compile-time enforcement that | |
| 11 // all 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 } | |
| 
 
estark
2016/12/14 20:18:04
you'll need to add
NOTREACHED();
return false;
a
 
lgarron
2016/12/14 22:18:15
Thanks; done and done.
 
 | |
| 23 } | |
| 24 | |
| 25 } // namespace security_state | |
| OLD | NEW |