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

Unified Diff: content/browser/ssl/ssl_manager.cc

Issue 2239273002: Don't use SSLStatus from FrameHostMsg_DidCommitProvisionalLoad and instead cache it on the browser … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 4 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: content/browser/ssl/ssl_manager.cc
diff --git a/content/browser/ssl/ssl_manager.cc b/content/browser/ssl/ssl_manager.cc
index cb2e54037e25e22c0e7011b63485a50f8b7ee008..3d3e92f8e7fb63a957f1f2f9b5191040ebcce106 100644
--- a/content/browser/ssl/ssl_manager.cc
+++ b/content/browser/ssl/ssl_manager.cc
@@ -145,15 +145,6 @@ SSLManager::~SSLManager() {
void SSLManager::DidCommitProvisionalLoad(const LoadCommittedDetails& details) {
NavigationEntryImpl* entry = controller_->GetLastCommittedEntry();
-
- if (details.is_main_frame) {
- if (entry) {
- // We may not have an entry if this is a navigation to an initial blank
- // page. Add the new data we have.
- entry->GetSSL() = details.ssl_status;
- }
- }
-
policy()->UpdateEntry(entry, controller_->delegate()->GetWebContents());
// Always notify the WebContents that the SSL state changed when a
// load is committed, in case the active navigation entry has changed.

Powered by Google App Engine
This is Rietveld 408576698