From d4efb2e57d0f5498a1171744b31d6300d6bf9b55 Mon Sep 17 00:00:00 2001
From: "akalin@chromium.org"
 <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Tue, 28 Sep 2010 20:00:06 +0000
Subject: Revert 60834 - Changed EXTENSION_UNINSTALLED notification to happen
 after uninstallation.

The important part is that it comes after the EXTENSION_UNLOADED
notification is sent.  This makes it easier on the listeners, as they
can assume that extension notifications other than EXTENSION_UNINSTALLED
are sent for currently-installed extensions.

BUG=54415
TEST=BackgroundModeManagerTest

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

TBR=akalin@chromium.org
Review URL: http://codereview.chromium.org/3525001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60837 0039d316-1c4b-4281-b951-d872f2087c98
---
 chrome/browser/background_mode_manager.h | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'chrome/browser/background_mode_manager.h')

diff --git a/chrome/browser/background_mode_manager.h b/chrome/browser/background_mode_manager.h
index 27e710f..46e8847 100644
--- a/chrome/browser/background_mode_manager.h
+++ b/chrome/browser/background_mode_manager.h
@@ -85,6 +85,9 @@ class BackgroundModeManager
   // Invoked when the kBackgroundModeEnabled preference has changed.
   void OnBackgroundModePrefChanged();
 
+  // Returns true if the passed extension is a background app.
+  bool IsBackgroundApp(Extension* extension);
+
   // Returns true if the background mode preference is enabled
   bool IsBackgroundModeEnabled();
 
-- 
cgit v1.1