Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5802)

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 7621061: Restoring a session should restore window minimization state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing Mark's comments. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sessions/session_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index 3ed5bfd9ccd6b40b8ba04722b6e1c711a7953440..c4c5b2945f89d62e639b6608070fb1dd0c829922 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -466,7 +466,7 @@ class SessionRestoreImpl : public NotificationObserver {
Browser* browser = CreateRestoredBrowser(
static_cast<Browser::Type>((*i)->type),
(*i)->bounds,
- (*i)->is_maximized);
+ (*i)->show_state);
// Restore and show the browser.
const int initial_tab_count = browser->tab_count();
@@ -616,7 +616,7 @@ class SessionRestoreImpl : public NotificationObserver {
browser = CreateRestoredBrowser(
static_cast<Browser::Type>((*i)->type),
(*i)->bounds,
- (*i)->is_maximized);
+ (*i)->show_state);
#if defined(OS_CHROMEOS)
chromeos::BootTimesLoader::Get()->AddLoginTimeMarker(
"SessionRestore-CreateRestoredBrowser-End", false);
@@ -710,12 +710,10 @@ class SessionRestoreImpl : public NotificationObserver {
Browser* CreateRestoredBrowser(Browser::Type type,
gfx::Rect bounds,
- bool is_maximized) {
+ ui::WindowShowState show_state) {
Browser* browser = new Browser(type, profile_);
browser->set_override_bounds(bounds);
- browser->set_maximized_state(is_maximized ?
- Browser::MAXIMIZED_STATE_MAXIMIZED :
- Browser::MAXIMIZED_STATE_UNMAXIMIZED);
+ browser->set_show_state(show_state);
browser->InitBrowserWindow();
return browser;
}
« no previous file with comments | « no previous file | chrome/browser/sessions/session_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698