summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sessions/session_restore.cc
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-09 21:11:01 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-09 21:11:01 +0000
commit2e71662080eac468322f9b61a81a3abb4c9d40bc (patch)
tree863408b851a33c57eeedd3bc788f1f8416a2ec02 /chrome/browser/sessions/session_restore.cc
parent8bf80e9295fcc8166e103d3f4a5d1947619c525c (diff)
downloadchromium_src-2e71662080eac468322f9b61a81a3abb4c9d40bc.zip
chromium_src-2e71662080eac468322f9b61a81a3abb4c9d40bc.tar.gz
chromium_src-2e71662080eac468322f9b61a81a3abb4c9d40bc.tar.bz2
Fixes session restore bug where we wouldn't necessarily correctly
restore the maximized state. The problem was we were using a boolean when we really needed three values: use the default, explicitly maximized or explicitly normal. I'm also removing a bogus DLOG in info_bubble. BUG=7930 TEST=see bug Review URL: http://codereview.chromium.org/40306 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11287 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions/session_restore.cc')
-rw-r--r--chrome/browser/sessions/session_restore.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index b6db981..51c5403 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -300,7 +300,9 @@ class SessionRestoreImpl : public NotificationObserver {
if (!browser) {
browser = new Browser((*i)->type, profile_);
browser->set_override_bounds((*i)->bounds);
- browser->set_override_maximized((*i)->is_maximized);
+ browser->set_maximized_state((*i)->is_maximized ?
+ Browser::MAXIMIZED_STATE_MAXIMIZED :
+ Browser::MAXIMIZED_STATE_UNMAXIMIZED);
browser->CreateBrowserWindow();
}
if ((*i)->type == Browser::TYPE_NORMAL)