summaryrefslogtreecommitdiffstats
path: root/chrome/browser/background
diff options
context:
space:
mode:
authorsammc@chromium.org <sammc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-18 02:20:52 +0000
committersammc@chromium.org <sammc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-18 02:20:52 +0000
commita28616495873463ee0a608b0c11229937869ca16 (patch)
tree28b6a510e91ee50333e9a7c458f7a1d81a518619 /chrome/browser/background
parent4015110d66d9151d379a5f64bf0b42270025d25b (diff)
downloadchromium_src-a28616495873463ee0a608b0c11229937869ca16.zip
chromium_src-a28616495873463ee0a608b0c11229937869ca16.tar.gz
chromium_src-a28616495873463ee0a608b0c11229937869ca16.tar.bz2
Clear session-only data when all browser windows are closed.
This clears session-only cookies and cookies and local storage for origins that are set to clear on exit. With this change, closing all browser windows clears session data regardless of whether an app is keeping the browser process alive. BUG=268224 Review URL: https://codereview.chromium.org/25414005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background')
-rw-r--r--chrome/browser/background/background_mode_manager.cc2
-rw-r--r--chrome/browser/background/background_mode_manager.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/background/background_mode_manager.cc b/chrome/browser/background/background_mode_manager.cc
index 7fd24c0..b1ffcd1 100644
--- a/chrome/browser/background/background_mode_manager.cc
+++ b/chrome/browser/background/background_mode_manager.cc
@@ -262,7 +262,7 @@ void BackgroundModeManager::LaunchBackgroundApplication(
OpenApplication(AppLaunchParams(profile, extension, NEW_FOREGROUND_TAB));
}
-bool BackgroundModeManager::IsBackgroundModeActiveForTest() {
+bool BackgroundModeManager::IsBackgroundModeActive() {
return in_background_mode_;
}
diff --git a/chrome/browser/background/background_mode_manager.h b/chrome/browser/background/background_mode_manager.h
index 118d386..0494f5a 100644
--- a/chrome/browser/background/background_mode_manager.h
+++ b/chrome/browser/background/background_mode_manager.h
@@ -60,6 +60,9 @@ class BackgroundModeManager
static void LaunchBackgroundApplication(Profile* profile,
const extensions::Extension* extension);
+ // Returns true if background mode is active.
+ virtual bool IsBackgroundModeActive();
+
// For testing purposes.
int NumberOfBackgroundModeData();
@@ -246,9 +249,6 @@ class BackgroundModeManager
// (virtual to allow overriding in tests).
virtual bool IsBackgroundModePrefEnabled() const;
- // Returns true if background mode is active. Used only by tests.
- bool IsBackgroundModeActiveForTest();
-
// Turns off background mode if it's currently enabled.
void DisableBackgroundMode();