From 404df1613316a15634d5ba70fdbf32c85c0032e4 Mon Sep 17 00:00:00 2001 From: "atwilson@chromium.org" Date: Thu, 8 Apr 2010 19:42:54 +0000 Subject: This is a new version of the older patch. Main changes include: 1. Rebased to a never Git revision to make things easier to land. 2. Chrome will now preserve the command line switches except for those that are blacklisted. 3. Fixed a race condition that would cause the browser to think it didn't exit cleanly after it's been restarted. 4. Fixed minor nits and omissions (indentation, etc). This patch adds a timer which fires every 6 hours and checks whether the browser is in the "persistent" (background) mode, and whether there's an update pending restart. If both conditions are true, the browser is restarted with blacklisted command line keys and all loose values stripped. In order to restart the browser in the background mode, the --long-lived-extensions key is also added to the command line. This change is Windows-only, and it won't become fully functional until Drew (atwilson) checks in his work that enables Chrome to go into background. Review URL: http://codereview.chromium.org/1617001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43989 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_list.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chrome/browser/browser_list.cc') diff --git a/chrome/browser/browser_list.cc b/chrome/browser/browser_list.cc index ec7865d1..93af98b 100644 --- a/chrome/browser/browser_list.cc +++ b/chrome/browser/browser_list.cc @@ -310,6 +310,13 @@ bool BrowserList::HasBrowserWithProfile(Profile* profile) { } // static +bool BrowserList::IsInPersistentMode() { + // TODO(atwilson): check the boolean state variable that you will set for + // persisent instances. + return false; +} + +// static BrowserList::list_type BrowserList::last_active_browsers_; // static -- cgit v1.1