diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 23:33:55 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 23:33:55 +0000 |
commit | 4070a6b1efcb2dbea12508a0b912cfa3bc86f47e (patch) | |
tree | bdf564c66c7a2d63d5d5bafdcccb27c233b969af /chrome/browser/defaults.cc | |
parent | d57baa939d66854a7f6d4e8e149ddf16578a46df (diff) | |
download | chromium_src-4070a6b1efcb2dbea12508a0b912cfa3bc86f47e.zip chromium_src-4070a6b1efcb2dbea12508a0b912cfa3bc86f47e.tar.gz chromium_src-4070a6b1efcb2dbea12508a0b912cfa3bc86f47e.tar.bz2 |
Mac: don't restore explicitly closed windows.
With "On startup"/"Restore the pages that were open last" set (in Preferences), a window which was explicitly closed (using the red button, Cmd-Shift-W, the menu item -- but not due to quit) should not be restored on startup. This is the behaviour of Firefox and Camino (Safari doesn't appear to implement this feature).
Note about this patch: Depending on how we decide things will work for App mode, much more code could be disabled on Mac.
BUG=13341
TEST=Set the browser to restore pages on start (see above). Navigate somewhere interesting; close window; quit; restart; should open a browser with default window (NTP or homepage or whatever). Navigate somewhere; quit; restart; should open previously opened stuff. Make sure that session restore (also crash recovery) still work as expected.
Review URL: http://codereview.chromium.org/362016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/defaults.cc')
-rw-r--r-- | chrome/browser/defaults.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/defaults.cc b/chrome/browser/defaults.cc index 916a50f..fdc261a 100644 --- a/chrome/browser/defaults.cc +++ b/chrome/browser/defaults.cc @@ -47,4 +47,10 @@ const bool kRestorePopups = false; #endif +#if defined(OS_MACOSX) +const bool kBrowserAliveWithNoWindows = true; +#else +const bool kBrowserAliveWithNoWindows = false; +#endif + } // namespace browser_defaults |