| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/website_settings/website_settings.h" | 5 #include "chrome/browser/ui/website_settings/website_settings.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 site_connection_details_.assign(l10n_util::GetStringFUTF16( | 553 site_connection_details_.assign(l10n_util::GetStringFUTF16( |
| 554 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_CONNECTION_TEXT, | 554 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_CONNECTION_TEXT, |
| 555 subject_name)); | 555 subject_name)); |
| 556 } else { | 556 } else { |
| 557 site_connection_details_.assign(l10n_util::GetStringFUTF16( | 557 site_connection_details_.assign(l10n_util::GetStringFUTF16( |
| 558 IDS_PAGE_INFO_SECURITY_TAB_WEAK_ENCRYPTION_CONNECTION_TEXT, | 558 IDS_PAGE_INFO_SECURITY_TAB_WEAK_ENCRYPTION_CONNECTION_TEXT, |
| 559 subject_name)); | 559 subject_name)); |
| 560 } | 560 } |
| 561 | 561 |
| 562 if (security_info.mixed_content_status != | 562 if (security_info.mixed_content_status != |
| 563 SecurityStateModel::NO_MIXED_CONTENT) { | 563 SecurityStateModel::CONTENT_STATUS_NONE) { |
| 564 bool ran_insecure_content = | 564 bool ran_insecure_content = |
| 565 (security_info.mixed_content_status == | 565 (security_info.mixed_content_status == |
| 566 SecurityStateModel::RAN_MIXED_CONTENT || | 566 SecurityStateModel::CONTENT_STATUS_RAN || |
| 567 security_info.mixed_content_status == | 567 security_info.mixed_content_status == |
| 568 SecurityStateModel::RAN_AND_DISPLAYED_MIXED_CONTENT); | 568 SecurityStateModel::CONTENT_STATUS_DISPLAYED_AND_RAN); |
| 569 site_connection_status_ = ran_insecure_content | 569 site_connection_status_ = ran_insecure_content |
| 570 ? SITE_CONNECTION_STATUS_MIXED_SCRIPT | 570 ? SITE_CONNECTION_STATUS_MIXED_SCRIPT |
| 571 : SITE_CONNECTION_STATUS_MIXED_CONTENT; | 571 : SITE_CONNECTION_STATUS_MIXED_CONTENT; |
| 572 site_connection_details_.assign(l10n_util::GetStringFUTF16( | 572 site_connection_details_.assign(l10n_util::GetStringFUTF16( |
| 573 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_SENTENCE_LINK, | 573 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_SENTENCE_LINK, |
| 574 site_connection_details_, | 574 site_connection_details_, |
| 575 l10n_util::GetStringUTF16(ran_insecure_content ? | 575 l10n_util::GetStringUTF16(ran_insecure_content ? |
| 576 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_INSECURE_CONTENT_ERROR : | 576 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_INSECURE_CONTENT_ERROR : |
| 577 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_INSECURE_CONTENT_WARNING))); | 577 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_INSECURE_CONTENT_WARNING))); |
| 578 } | 578 } |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 info.connection_status = site_connection_status_; | 759 info.connection_status = site_connection_status_; |
| 760 info.connection_status_description = | 760 info.connection_status_description = |
| 761 UTF16ToUTF8(site_connection_details_); | 761 UTF16ToUTF8(site_connection_details_); |
| 762 info.identity_status = site_identity_status_; | 762 info.identity_status = site_identity_status_; |
| 763 info.identity_status_description = | 763 info.identity_status_description = |
| 764 UTF16ToUTF8(site_identity_details_); | 764 UTF16ToUTF8(site_identity_details_); |
| 765 info.cert_id = cert_id_; | 765 info.cert_id = cert_id_; |
| 766 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; | 766 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; |
| 767 ui_->SetIdentityInfo(info); | 767 ui_->SetIdentityInfo(info); |
| 768 } | 768 } |
| OLD | NEW |