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

Unified Diff: chrome/browser/ui/login/login_interstitial_delegate.cc

Issue 403933002: Set SSL info when an HTTP auth dialog is triggered by direct navigation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Set SSL status in ResourceLoader Created 6 years, 5 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/ui/login/login_interstitial_delegate.cc
diff --git a/chrome/browser/ui/login/login_interstitial_delegate.cc b/chrome/browser/ui/login/login_interstitial_delegate.cc
index b4b8dfb73603b29875f008970ff1a631bd76a40a..02696415a56d869b84dc7616ad625e5a3e93f9db 100644
--- a/chrome/browser/ui/login/login_interstitial_delegate.cc
+++ b/chrome/browser/ui/login/login_interstitial_delegate.cc
@@ -4,11 +4,17 @@
#include "chrome/browser/ui/login/login_interstitial_delegate.h"
+#include "content/public/browser/navigation_entry.h"
+#include "content/public/common/ssl_status.h"
+
LoginInterstitialDelegate::LoginInterstitialDelegate(
content::WebContents* web_contents,
const GURL& request_url,
+ const content::SSLStatus& ssl_status,
base::Closure& callback)
- : callback_(callback) {
+ : web_contents_(web_contents),
+ ssl_status_(ssl_status),
+ callback_(callback) {
// The interstitial page owns us.
content::InterstitialPage* interstitial_page =
content::InterstitialPage::Create(web_contents,
@@ -37,3 +43,14 @@ std::string LoginInterstitialDelegate::GetHTMLContents() {
"window.domAutomationController.send('1');"
"</script></body></html>");
}
+
+void LoginInterstitialDelegate::OverrideEntry(content::NavigationEntry* entry) {
+ entry->GetSSL().security_style = ssl_status_.security_style;
+ entry->GetSSL().cert_id = ssl_status_.cert_id;
+ entry->GetSSL().cert_status = ssl_status_.cert_status;
+ entry->GetSSL().security_bits = ssl_status_.security_bits;
+ entry->GetSSL().connection_status = ssl_status_.connection_status;
+ entry->GetSSL().content_status = ssl_status_.content_status;
+ entry->GetSSL().signed_certificate_timestamp_ids =
+ ssl_status_.signed_certificate_timestamp_ids;
+}

Powered by Google App Engine
This is Rietveld 408576698