Chromium Code Reviews| 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 "ios/chrome/browser/ssl/ios_security_state_tab_helper.h" | 5 #include "ios/chrome/browser/ssl/ios_security_state_tab_helper.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 state->connection_info_initialized = true; | 48 state->connection_info_initialized = true; |
| 49 state->url = item->GetURL(); | 49 state->url = item->GetURL(); |
| 50 const web::SSLStatus& ssl = item->GetSSL(); | 50 const web::SSLStatus& ssl = item->GetSSL(); |
| 51 state->certificate = ssl.certificate; | 51 state->certificate = ssl.certificate; |
| 52 state->cert_status = ssl.cert_status; | 52 state->cert_status = ssl.cert_status; |
| 53 state->connection_status = ssl.connection_status; | 53 state->connection_status = ssl.connection_status; |
| 54 state->security_bits = ssl.security_bits; | 54 state->security_bits = ssl.security_bits; |
| 55 state->displayed_mixed_content = | 55 state->displayed_mixed_content = |
| 56 (ssl.content_status & web::SSLStatus::DISPLAYED_INSECURE_CONTENT) ? true | 56 (ssl.content_status & web::SSLStatus::DISPLAYED_INSECURE_CONTENT) ? true |
| 57 : false; | 57 : false; |
| 58 state->displayed_password_field_on_http = | |
| 59 (ssl.content_status & web::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP) | |
| 60 ? true | |
|
Eugene But (OOO till 7-30)
2016/11/30 17:58:41
nit: do you need ternary here? |ssl.content_status
lgarron
2016/12/02 01:21:52
I copied state->displayed_mixed_content for consis
Eugene But (OOO till 7-30)
2016/12/02 01:53:11
Sorry, did not notice the previous line :) Feel fr
| |
| 61 : false; | |
| 58 return state; | 62 return state; |
| 59 } | 63 } |
| OLD | NEW |