diff options
author | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-23 09:12:13 +0000 |
---|---|---|
committer | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-23 09:12:13 +0000 |
commit | b0af47917b401019c91510ac664be63926a949dc (patch) | |
tree | ee953b0eb81d49bfea2907060579590290ff2781 /chrome/browser/background | |
parent | e52484db28caede10e585b75b9b46aff79bcf9a7 (diff) | |
download | chromium_src-b0af47917b401019c91510ac664be63926a949dc.zip chromium_src-b0af47917b401019c91510ac664be63926a949dc.tar.gz chromium_src-b0af47917b401019c91510ac664be63926a949dc.tar.bz2 |
Move extension_misc::UnloadedExtensionReason from extension_constants.h to UnloadedExtensionInfo in extension.h.
This precipitated a IWYU fix for extension_constants.h.
BUG=298586,310174
TBR=koz@chromium.org,sky@chromium.org
Review URL: https://codereview.chromium.org/36023002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background')
-rw-r--r-- | chrome/browser/background/background_contents_service.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc index 9ab995c..7129e36 100644 --- a/chrome/browser/background/background_contents_service.cc +++ b/chrome/browser/background/background_contents_service.cc @@ -428,16 +428,16 @@ void BackgroundContentsService::Observe( } case chrome::NOTIFICATION_EXTENSION_UNLOADED: switch (content::Details<UnloadedExtensionInfo>(details)->reason) { - case extension_misc::UNLOAD_REASON_DISABLE: // Fall through. - case extension_misc::UNLOAD_REASON_TERMINATE: // Fall through. - case extension_misc::UNLOAD_REASON_UNINSTALL: // Fall through. - case extension_misc::UNLOAD_REASON_BLACKLIST: + case UnloadedExtensionInfo::REASON_DISABLE: // Fall through. + case UnloadedExtensionInfo::REASON_TERMINATE: // Fall through. + case UnloadedExtensionInfo::REASON_UNINSTALL: // Fall through. + case UnloadedExtensionInfo::REASON_BLACKLIST: ShutdownAssociatedBackgroundContents( ASCIIToUTF16(content::Details<UnloadedExtensionInfo>(details)-> extension->id())); SendChangeNotification(content::Source<Profile>(source).ptr()); break; - case extension_misc::UNLOAD_REASON_UPDATE: { + case UnloadedExtensionInfo::REASON_UPDATE: { // If there is a manifest specified background page, then shut it down // here, since if the updated extension still has the background page, // then it will be loaded from LOADED callback. Otherwise, leave |