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

Unified Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 11072002: Combined window positioning and show state determiniation in the WindowSizer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
Index: chrome/browser/ui/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
index 3c1cde275767c7cc4fb2545e1bbb18977b97b576..a0d24cf2201cfdd38e93a8547a7d73aa8c557702 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -1666,9 +1666,9 @@ void BrowserWindowGtk::SetGeometryHints() {
// confused and maximizes the window, but doesn't set the
// GDK_WINDOW_STATE_MAXIMIZED bit. So instead, we keep track of whether to
// maximize and call it after gtk_window_present.
- show_state_after_show_ = chrome::GetSavedWindowShowState(browser_.get());
-
- gfx::Rect bounds = chrome::GetSavedWindowBounds(browser_.get());
+ gfx::Rect bounds = chrome::GetSavedWindowBoundsAndShowState(
+ browser_.get(),
+ show_state_after_show_);
// We don't blindly call SetBounds here: that sets a forced position
// on the window and we intentionally *don't* do that for normal
// windows. Most programs do not restore their window position on

Powered by Google App Engine
This is Rietveld 408576698