Commit b31d6314 authored by erg@chromium.org's avatar erg@chromium.org

Profiles: Mark SITE_INSTANCE_DELETED use as OK.

BUG=87457
TEST=none

Review URL: http://codereview.chromium.org/7647035

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96998 0039d316-1c4b-4281-b951-d872f2087c98
parent e0e2743d
...@@ -96,8 +96,10 @@ ExtensionProcessManager::ExtensionProcessManager(Profile* profile) ...@@ -96,8 +96,10 @@ ExtensionProcessManager::ExtensionProcessManager(Profile* profile)
Source<Profile>(original_profile)); Source<Profile>(original_profile));
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_HOST_DESTROYED, registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_HOST_DESTROYED,
Source<Profile>(profile)); Source<Profile>(profile));
// We can listen to everything for SITE_INSTANCE_DELETED because we check the
// |site_instance_id| in UnregisterExtensionSiteInstance.
registrar_.Add(this, content::NOTIFICATION_SITE_INSTANCE_DELETED, registrar_.Add(this, content::NOTIFICATION_SITE_INSTANCE_DELETED,
NotificationService::AllSources()); NotificationService::AllBrowserContextsAndSources());
registrar_.Add(this, content::NOTIFICATION_APP_TERMINATING, registrar_.Add(this, content::NOTIFICATION_APP_TERMINATING,
NotificationService::AllSources()); NotificationService::AllSources());
} }
......
...@@ -108,7 +108,7 @@ VisitedLinkEventListener::VisitedLinkEventListener() { ...@@ -108,7 +108,7 @@ VisitedLinkEventListener::VisitedLinkEventListener() {
registrar_.Add(this, content::NOTIFICATION_RENDERER_PROCESS_TERMINATED, registrar_.Add(this, content::NOTIFICATION_RENDERER_PROCESS_TERMINATED,
NotificationService::AllSources()); NotificationService::AllSources());
registrar_.Add(this, content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED, registrar_.Add(this, content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED,
NotificationService::AllSources()); NotificationService::AllBrowserContextsAndSources());
} }
VisitedLinkEventListener::~VisitedLinkEventListener() { VisitedLinkEventListener::~VisitedLinkEventListener() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment