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

Unified Diff: content/browser/site_instance.cc

Issue 7328029: Use process-per-app-instance for hosted apps without background permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix incognito function. Created 9 years, 5 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/content_browser_client.h ('k') | content/browser/site_instance_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/site_instance.cc
diff --git a/content/browser/site_instance.cc b/content/browser/site_instance.cc
index d69690e2ab2bc5b20c1a1ba7593262837472622a..442c80796b15da971ff3b006f78af1f65894cad8 100644
--- a/content/browser/site_instance.cc
+++ b/content/browser/site_instance.cc
@@ -42,6 +42,11 @@ SiteInstance::SiteInstance(BrowsingInstance* browsing_instance)
}
SiteInstance::~SiteInstance() {
+ NotificationService::current()->Notify(
+ content::NOTIFICATION_SITE_INSTANCE_DELETED,
+ Source<SiteInstance>(this),
+ NotificationService::NoDetails());
+
// Now that no one is referencing us, we can safely remove ourselves from
// the BrowsingInstance. Any future visits to a page from this site
// (within the same BrowsingInstance) can safely create a new SiteInstance.
« no previous file with comments | « content/browser/content_browser_client.h ('k') | content/browser/site_instance_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698