diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-30 02:58:36 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-30 02:58:36 +0000 |
commit | 6ea265a8b1b6e1512992945efa08942f575ad4c1 (patch) | |
tree | 5b58bd5a7f6f599db9e08435965fb81ca54c4930 /chrome/browser/session_restore.h | |
parent | 5ffd5e9b703d122dbac2dce9425a88b414f6de97 (diff) | |
download | chromium_src-6ea265a8b1b6e1512992945efa08942f575ad4c1.zip chromium_src-6ea265a8b1b6e1512992945efa08942f575ad4c1.tar.gz chromium_src-6ea265a8b1b6e1512992945efa08942f575ad4c1.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/session_restore.h')
-rw-r--r-- | chrome/browser/session_restore.h | 2 |
1 files changed, 2 insertions, 0 deletions
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, |