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

Unified Diff: chrome/browser/ssl/ssl_host_state.cc

Issue 3536019: Fix 58162: Mixed Content False Positive for intranet hostname certificates... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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
Index: chrome/browser/ssl/ssl_host_state.cc
===================================================================
--- chrome/browser/ssl/ssl_host_state.cc (revision 62112)
+++ chrome/browser/ssl/ssl_host_state.cc (working copy)
@@ -6,17 +6,6 @@
#include "base/logging.h"
-namespace {
-
-static const char kDot = '.';
-
-static bool IsIntranetHost(const std::string& host) {
- const size_t dot = host.find(kDot);
- return dot == std::string::npos || dot == host.length() - 1;
-}
-
-} // namespace
-
SSLHostState::SSLHostState() {
}
@@ -31,12 +20,6 @@
bool SSLHostState::DidHostRunInsecureContent(const std::string& host,
int pid) const {
DCHECK(CalledOnValidThread());
-
- // CAs issue certificates for intranet hosts to everyone. Therefore, we
- // always treat intranet hosts as having run insecure content.
- if (IsIntranetHost(host))
- return true;
-
return !!ran_insecure_content_hosts_.count(BrokenHostEntry(host, pid));
}

Powered by Google App Engine
This is Rietveld 408576698