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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 12220100: Revert "content: convert SSL notifications to observer usage" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/notification_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index c909b1bc4fc6e5013d2335f69281a09245f99894..a9fca86a3ea950210e84e3c563a0349a3f7c6d2a 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2204,8 +2204,7 @@ void WebContentsImpl::OnDidLoadResourceFromMemoryCache(
void WebContentsImpl::OnDidDisplayInsecureContent() {
RecordAction(UserMetricsAction("SSL.DisplayedInsecureContent"));
displayed_insecure_content_ = true;
- SSLManager::NotifySSLInternalStateChanged(
- GetController().GetBrowserContext());
+ SSLManager::NotifySSLInternalStateChanged(&GetController());
}
void WebContentsImpl::OnDidRunInsecureContent(
@@ -2217,8 +2216,7 @@ void WebContentsImpl::OnDidRunInsecureContent(
RecordAction(UserMetricsAction("SSL.RanInsecureContentGoogle"));
controller_.ssl_manager()->DidRunInsecureContent(security_origin);
displayed_insecure_content_ = true;
- SSLManager::NotifySSLInternalStateChanged(
- GetController().GetBrowserContext());
+ SSLManager::NotifySSLInternalStateChanged(&GetController());
}
void WebContentsImpl::OnDocumentLoadedInFrame(int64 frame_id) {
@@ -2495,11 +2493,6 @@ void WebContentsImpl::DidBlock3DAPIs(const GURL& url,
DidBlock3DAPIs(url, requester));
}
-void WebContentsImpl::DidChangeVisibleSSLState() {
- FOR_EACH_OBSERVER(WebContentsObserver, observers_,
- DidChangeVisibleSSLState());
-}
-
// Notifies the RenderWidgetHost instance about the fact that the page is
// loading, or done loading and calls the base implementation.
void WebContentsImpl::SetIsLoading(bool is_loading,
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698