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

Unified Diff: chrome/browser/password_manager/chrome_password_manager_client.cc

Issue 2673053002: Obsolete HTTP Cleaner (Closed)
Patch Set: Drop PKP Check Created 3 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
Index: chrome/browser/password_manager/chrome_password_manager_client.cc
diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc
index 62bd164680d795bea9e57ea43cb983781c968add..9928f5fdbf9dff9390c339a5385bf2f33594b017 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client.cc
+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
@@ -60,6 +60,8 @@
#include "extensions/features/features.h"
#include "google_apis/gaia/gaia_urls.h"
#include "net/base/url_util.h"
+#include "net/http/transport_security_state.h"
+#include "net/url_request/url_request_context.h"
#include "third_party/re2/src/re2/re2.h"
#if defined(OS_ANDROID)
@@ -223,6 +225,22 @@ bool ChromePasswordManagerClient::IsFillingEnabledForCurrentPage() const {
IsPasswordManagementEnabledForCurrentPage();
}
+bool ChromePasswordManagerClient::IsHSTSActiveForHost(
+ const GURL& origin) const {
+ if (!origin.is_valid())
+ return false;
+
+ net::TransportSecurityState* security_state =
+ profile_->GetRequestContext()
+ ->GetURLRequestContext()
+ ->transport_security_state();
+
+ if (!security_state)
+ return false;
+
+ return security_state->ShouldUpgradeToSSL(origin.host());
+}
+
bool ChromePasswordManagerClient::OnCredentialManagerUsed() {
prerender::PrerenderContents* prerender_contents =
prerender::PrerenderContents::FromWebContents(web_contents());
« no previous file with comments | « chrome/browser/password_manager/chrome_password_manager_client.h ('k') | components/password_manager/core/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698