summaryrefslogtreecommitdiffstats
path: root/extensions/common/extension.h
diff options
context:
space:
mode:
authorscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-16 01:26:28 +0000
committerscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-16 01:26:28 +0000
commit3b511b52790bdd484b3bb25d3f3a726e449ad4e7 (patch)
tree40ec9a87aea8509c1f860423170bed8c58f4bc00 /extensions/common/extension.h
parent6b9efd9d98221d91e833b38d1a2d9c2fb7312cc7 (diff)
downloadchromium_src-3b511b52790bdd484b3bb25d3f3a726e449ad4e7.zip
chromium_src-3b511b52790bdd484b3bb25d3f3a726e449ad4e7.tar.gz
chromium_src-3b511b52790bdd484b3bb25d3f3a726e449ad4e7.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. Relanding patch: ShutdownStartupCycle failed in build [49353], this patch was speculatively reverted in r269383 [49355], but ShutdownStartupCycle failed again in [49362] after the revert had landed. [49353] http://build.chromium.org/p/chromium.mac/builders/Mac%2010.6%20Tests%20%28dbg%29%281%29/builds/49353 [49355] http://build.chromium.org/p/chromium.mac/builders/Mac%2010.6%20Tests%20%28dbg%29%281%29/builds/49355 [49362] http://build.chromium.org/p/chromium.mac/builders/Mac%2010.6%20Tests%20%28dbg%29%281%29/builds/49362 BUG=368684 TEST=Manual testing as described on http://crbug.com/368684#c1 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269343 Review URL: https://codereview.chromium.org/266343002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/extension.h')
-rw-r--r--extensions/common/extension.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/extensions/common/extension.h b/extensions/common/extension.h
index 2d7b2aa..c98c5c6 100644
--- a/extensions/common/extension.h
+++ b/extensions/common/extension.h
@@ -521,11 +521,13 @@ struct InstalledExtensionInfo {
struct UnloadedExtensionInfo {
// TODO(DHNishi): Move this enum to ExtensionRegistryObserver.
enum Reason {
- REASON_DISABLE, // Extension is being disabled.
- REASON_UPDATE, // Extension is being updated to a newer version.
- REASON_UNINSTALL, // Extension is being uninstalled.
- REASON_TERMINATE, // Extension has terminated.
- REASON_BLACKLIST, // Extension has been blacklisted.
+ REASON_UNDEFINED, // Undefined state used to initialize variables.
+ REASON_DISABLE, // Extension is being disabled.
+ REASON_UPDATE, // Extension is being updated to a newer version.
+ REASON_UNINSTALL, // Extension is being uninstalled.
+ REASON_TERMINATE, // Extension has terminated.
+ REASON_BLACKLIST, // Extension has been blacklisted.
+ REASON_PROFILE_SHUTDOWN, // Profile is being shut down.
};
Reason reason;