Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: chrome/browser/ui/website_settings/website_settings.cc

Issue 172173004: Remove unneeded DCHECK for connection status. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comment Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/website_settings/website_settings.cc
diff --git a/chrome/browser/ui/website_settings/website_settings.cc b/chrome/browser/ui/website_settings/website_settings.cc
index d147bb6e6dbfcba4cc42c5e7bbd9152a32f6fac6..3fd79a16823c2add62a237c991cb1fb7aecb8435 100644
--- a/chrome/browser/ui/website_settings/website_settings.cc
+++ b/chrome/browser/ui/website_settings/website_settings.cc
@@ -435,13 +435,10 @@ void WebsiteSettings::Init(Profile* profile,
// weakly encrypted connections.
site_connection_status_ = SITE_CONNECTION_STATUS_UNKNOWN;
- if (!ssl.cert_id) {
- // Not HTTPS.
- DCHECK_EQ(ssl.security_style, content::SECURITY_STYLE_UNAUTHENTICATED);
wtc 2014/02/25 22:55:27 Babu: I just looked at bug 344891 that you filed.
- if (ssl.security_style == content::SECURITY_STYLE_UNAUTHENTICATED)
- site_connection_status_ = SITE_CONNECTION_STATUS_UNENCRYPTED;
- else
- site_connection_status_ = SITE_CONNECTION_STATUS_ENCRYPTED_ERROR;
+ if (ssl.security_style == content::SECURITY_STYLE_UNAUTHENTICATED) {
wtc 2014/02/27 22:30:29 As a workaround for the inability to disable the p
+ // HTTPS without a certificate, or not HTTPS.
+ DCHECK(!ssl.cert_id);
+ site_connection_status_ = SITE_CONNECTION_STATUS_UNENCRYPTED;
site_connection_details_.assign(l10n_util::GetStringFUTF16(
IDS_PAGE_INFO_SECURITY_TAB_NOT_ENCRYPTED_CONNECTION_TEXT,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698