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

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

Issue 12041059: content: convert SSL notifications to observer usage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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_policy_backend.cc
diff --git a/content/browser/ssl/ssl_policy_backend.cc b/content/browser/ssl/ssl_policy_backend.cc
index c405b79b7bc838167edbbe5a183943709774245b..91d62f0bcfc540642f25a58c3bc88e70641281fb 100644
--- a/content/browser/ssl/ssl_policy_backend.cc
+++ b/content/browser/ssl/ssl_policy_backend.cc
@@ -6,6 +6,7 @@
#include "content/browser/ssl/ssl_host_state.h"
#include "content/browser/web_contents/navigation_controller_impl.h"
+#include "content/browser/web_contents/navigation_entry_impl.h"
#include "content/public/browser/browser_context.h"
namespace content {
@@ -18,7 +19,8 @@ SSLPolicyBackend::SSLPolicyBackend(NavigationControllerImpl* controller)
void SSLPolicyBackend::HostRanInsecureContent(const std::string& host, int id) {
ssl_host_state_->HostRanInsecureContent(host, id);
- SSLManager::NotifySSLInternalStateChanged(controller_);
+ controller_->ssl_manager()->UpdateEntry(
+ NavigationEntryImpl::FromNavigationEntry(controller_->GetActiveEntry()));
}
bool SSLPolicyBackend::DidHostRunInsecureContent(const std::string& host,

Powered by Google App Engine
This is Rietveld 408576698