| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 } | 320 } |
| 321 | 321 |
| 322 return security_style; | 322 return security_style; |
| 323 } | 323 } |
| 324 | 324 |
| 325 void ChromeSecurityStateModelClient::GetSecurityInfo( | 325 void ChromeSecurityStateModelClient::GetSecurityInfo( |
| 326 SecurityStateModel::SecurityInfo* result) const { | 326 SecurityStateModel::SecurityInfo* result) const { |
| 327 security_state_model_->GetSecurityInfo(result); | 327 security_state_model_->GetSecurityInfo(result); |
| 328 } | 328 } |
| 329 | 329 |
| 330 void ChromeSecurityStateModelClient::VisibleSSLStateChanged() { | 330 void ChromeSecurityStateModelClient::VisibleSecurityStateChanged() { |
| 331 if (logged_http_warning_on_current_navigation_) | 331 if (logged_http_warning_on_current_navigation_) |
| 332 return; | 332 return; |
| 333 | 333 |
| 334 security_state::SecurityStateModel::SecurityInfo security_info; | 334 security_state::SecurityStateModel::SecurityInfo security_info; |
| 335 GetSecurityInfo(&security_info); | 335 GetSecurityInfo(&security_info); |
| 336 if (!security_info.displayed_private_user_data_input_on_http) | 336 if (!security_info.displayed_private_user_data_input_on_http) |
| 337 return; | 337 return; |
| 338 | 338 |
| 339 std::string warning; | 339 std::string warning; |
| 340 bool warning_is_user_visible = false; | 340 bool warning_is_user_visible = false; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 !!(ssl.content_status & content::SSLStatus::RAN_CONTENT_WITH_CERT_ERRORS); | 429 !!(ssl.content_status & content::SSLStatus::RAN_CONTENT_WITH_CERT_ERRORS); |
| 430 state->displayed_password_field_on_http = | 430 state->displayed_password_field_on_http = |
| 431 !!(ssl.content_status & | 431 !!(ssl.content_status & |
| 432 content::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP); | 432 content::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP); |
| 433 state->displayed_credit_card_field_on_http = | 433 state->displayed_credit_card_field_on_http = |
| 434 !!(ssl.content_status & | 434 !!(ssl.content_status & |
| 435 content::SSLStatus::DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP); | 435 content::SSLStatus::DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP); |
| 436 | 436 |
| 437 CheckSafeBrowsingStatus(entry, web_contents_, state); | 437 CheckSafeBrowsingStatus(entry, web_contents_, state); |
| 438 } | 438 } |
| OLD | NEW |