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

Unified Diff: chrome/browser/ssl/ssl_blocking_page.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 | « no previous file | chrome/browser/ssl/ssl_tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ssl/ssl_blocking_page.cc
diff --git a/chrome/browser/ssl/ssl_blocking_page.cc b/chrome/browser/ssl/ssl_blocking_page.cc
index 3a020ed14ee41b254b4b90005f4b4527f3d49fe8..f292e627156b42f93b3e3ab15ec35dd10b8ca1d5 100644
--- a/chrome/browser/ssl/ssl_blocking_page.cc
+++ b/chrome/browser/ssl/ssl_blocking_page.cc
@@ -14,8 +14,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/renderer_preferences_util.h"
#include "chrome/browser/ssl/ssl_error_info.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_finder.h"
#include "content/public/browser/cert_store.h"
#include "content/public/browser/interstitial_page.h"
#include "content/public/browser/navigation_controller.h"
@@ -328,10 +326,10 @@ void SSLBlockingPage::OverrideEntry(NavigationEntry* entry) {
entry->GetSSL().cert_id = cert_id;
entry->GetSSL().cert_status = ssl_info_.cert_status;
entry->GetSSL().security_bits = ssl_info_.security_bits;
-#if !defined(OS_ANDROID)
- Browser* browser = chrome::FindBrowserWithWebContents(web_contents_);
- browser->VisibleSSLStateChanged(web_contents_);
-#endif // !defined(OS_ANDROID)
+ content::NotificationService::current()->Notify(
+ content::NOTIFICATION_SSL_VISIBLE_STATE_CHANGED,
+ content::Source<NavigationController>(&web_contents_->GetController()),
+ content::NotificationService::NoDetails());
}
// Matches events defined in ssl_error.html and ssl_roadblock.html.
« no previous file with comments | « no previous file | chrome/browser/ssl/ssl_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698