summaryrefslogtreecommitdiffstats
path: root/chrome/browser/background_mode_manager.h
diff options
context:
space:
mode:
authoratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-27 07:06:18 +0000
committeratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-27 07:06:18 +0000
commita16e9ab23c91b7cf2a9bbef3bf646f75c14843c8 (patch)
tree60904021b970035586afd0fbe47ae18c652d396d /chrome/browser/background_mode_manager.h
parent97a1122a346843cd92c74173c6011d0abd810816 (diff)
downloadchromium_src-a16e9ab23c91b7cf2a9bbef3bf646f75c14843c8.zip
chromium_src-a16e9ab23c91b7cf2a9bbef3bf646f75c14843c8.tar.gz
chromium_src-a16e9ab23c91b7cf2a9bbef3bf646f75c14843c8.tar.bz2
Revert 57642 - Disable background mode when associated pref changes.
BUG=53173 TEST=new BackgroundModeManager unit tests Review URL: http://codereview.chromium.org/3205008 TBR=atwilson@chromium.org Review URL: http://codereview.chromium.org/3226006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background_mode_manager.h')
-rw-r--r--chrome/browser/background_mode_manager.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/chrome/browser/background_mode_manager.h b/chrome/browser/background_mode_manager.h
index 0408cc2..3a82399 100644
--- a/chrome/browser/background_mode_manager.h
+++ b/chrome/browser/background_mode_manager.h
@@ -49,12 +49,6 @@ class BackgroundModeManager
BackgroundAppLoadUnload);
FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest,
BackgroundAppInstallUninstall);
- FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest,
- BackgroundPrefDisabled);
- FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest,
- BackgroundPrefDynamicDisable);
- FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest,
- BackgroundPrefDynamicEnable);
// NotificationObserver implementation.
virtual void Observe(NotificationType type,
@@ -82,9 +76,6 @@ class BackgroundModeManager
// launch-on-startup is disabled if appropriate.
void OnBackgroundAppUninstalled();
- // Invoked when the kBackgroundModeEnabled preference has changed.
- void OnBackgroundModePrefChanged();
-
// Returns true if the passed extension is a background app.
bool IsBackgroundApp(Extension* extension);
@@ -124,11 +115,6 @@ class BackgroundModeManager
// The number of background apps currently loaded.
int background_app_count_;
- // Set to true when we are running in background mode. Allows us to track our
- // current background state so we can take the appropriate action when the
- // user disables/enables background mode via preferences.
- bool in_background_mode_;
-
// Reference to our status tray (owned by our parent profile). If null, the
// platform doesn't support status icons.
StatusTray* status_tray_;