From 6ea265a8b1b6e1512992945efa08942f575ad4c1 Mon Sep 17 00:00:00 2001 From: "sky@google.com" Date: Thu, 30 Oct 2008 02:58:36 +0000 Subject: Changes session restore to account for apps and popups. If you have session restore enabled any time you transition from no tabbed browsers to a tabbed browser (in the same profile) we restore your last session, where the last session was any previously open tabbed browsers. For example, if you start Chrome from an installed app shortcut then create a new tabbed browser (by any means) we'll restore your last session. This gives the illustion that apps are running in their own process. I would love to have test coverage of this, but I'm loathe to write anymore flakey UI tests. Need to revisit post 1.0. BUG=1883 TEST=thoroughly test session restore, especially with application shortcuts and popups. Review URL: http://codereview.chromium.org/8856 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4202 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/session_restore.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/browser/session_restore.h') diff --git a/chrome/browser/session_restore.h b/chrome/browser/session_restore.h index 1c765c8..a8987ee 100644 --- a/chrome/browser/session_restore.h +++ b/chrome/browser/session_restore.h @@ -19,6 +19,7 @@ class Profile; class SessionRestore { public: // Asnchronously restores the specified session. + // If |browser| is non-null the tabs for the first window are added to it. // If clobber_existing_window is true and there is an open browser window, // it is closed after restoring. // If always_create_tabbed_browser is true at least one tabbed browser is @@ -28,6 +29,7 @@ class SessionRestore { // // If urls_to_open is non-empty, a tab is added for each of the URLs. static void RestoreSession(Profile* profile, + Browser* browser, bool use_saved_session, bool clobber_existing_window, bool always_create_tabbed_browser, -- cgit v1.1