summaryrefslogtreecommitdiffstats
path: root/chrome/browser/background
diff options
context:
space:
mode:
authorscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-09 17:03:05 +0000
committerscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-09 17:03:05 +0000
commitf8e46614369594c29c72b0ae1a4b53ad259ed4af (patch)
treecbc40ffedb2a18b0c7f4d664dfbe80f031d923c8 /chrome/browser/background
parent68e301f49a64e5fa5cce8cb3a8dd6e6ffbfcc173 (diff)
downloadchromium_src-f8e46614369594c29c72b0ae1a4b53ad259ed4af.zip
chromium_src-f8e46614369594c29c72b0ae1a4b53ad259ed4af.tar.gz
chromium_src-f8e46614369594c29c72b0ae1a4b53ad259ed4af.tar.bz2
Unload all apps / extensions immediately when deleting a profile.
Previously apps could remain running with references to profiles that had been deleted by users, but before the browser shut down and profiles were fully removed. Problems included E.g. opening a link in an app would open a tab in the deleted profile. BUG=368684 TEST=Manual testing as described on http://crbug.com/368684#c1 Review URL: https://codereview.chromium.org/266343002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269343 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background')
-rw-r--r--chrome/browser/background/background_contents_service.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc
index 0d21871..b83decd 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -468,7 +468,8 @@ void BackgroundContentsService::Observe(
case UnloadedExtensionInfo::REASON_DISABLE: // Fall through.
case UnloadedExtensionInfo::REASON_TERMINATE: // Fall through.
case UnloadedExtensionInfo::REASON_UNINSTALL: // Fall through.
- case UnloadedExtensionInfo::REASON_BLACKLIST:
+ case UnloadedExtensionInfo::REASON_BLACKLIST: // Fall through.
+ case UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN:
ShutdownAssociatedBackgroundContents(base::ASCIIToUTF16(
content::Details<UnloadedExtensionInfo>(details)->
extension->id()));