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

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

Issue 7542029: Profiles: SSLManger broadcasts SSL_INTERNAL_STATE_CHANGED with a NavigationController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move from NavigationController to BrowserContext as the source. Created 9 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
« no previous file with comments | « content/browser/ssl/ssl_manager.h ('k') | content/browser/ssl/ssl_policy_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ssl/ssl_manager.cc
diff --git a/content/browser/ssl/ssl_manager.cc b/content/browser/ssl/ssl_manager.cc
index 0f6fff359f09d2aca87e8311f34d1a7b3bdf8d58..bc492850105d499bd1dbfe1701ba5d23a2e72ebc 100644
--- a/content/browser/ssl/ssl_manager.cc
+++ b/content/browser/ssl/ssl_manager.cc
@@ -18,6 +18,7 @@
#include "content/browser/tab_contents/provisional_load_details.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/common/notification_service.h"
+#include "content/common/notification_source.h"
#include "net/base/cert_status_flags.h"
// static
@@ -44,11 +45,12 @@ void SSLManager::OnSSLCertificateError(ResourceDispatcherHost* rdh,
}
// static
-void SSLManager::NotifySSLInternalStateChanged() {
+void SSLManager::NotifySSLInternalStateChanged(
+ NavigationController* controller) {
NotificationService::current()->Notify(
content::NOTIFICATION_SSL_INTERNAL_STATE_CHANGED,
- NotificationService::AllSources(),
- NotificationService::NoDetails());
+ Source<content::BrowserContext>(controller->browser_context()),
+ Details<NavigationController>(controller));
abarth-chromium 2011/08/04 21:09:32 These details shouldn't be needed. I'd skip it.
}
// static
@@ -105,7 +107,8 @@ SSLManager::SSLManager(NavigationController* controller)
registrar_.Add(this, content::NOTIFICATION_LOAD_FROM_MEMORY_CACHE,
Source<NavigationController>(controller_));
registrar_.Add(this, content::NOTIFICATION_SSL_INTERNAL_STATE_CHANGED,
- NotificationService::AllSources());
+ Source<content::BrowserContext>(
+ controller_->browser_context()));
}
SSLManager::~SSLManager() {
« no previous file with comments | « content/browser/ssl/ssl_manager.h ('k') | content/browser/ssl/ssl_policy_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698