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

Unified Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

Issue 11072002: Combined window positioning and show state determiniation in the WindowSizer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More include issues 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/cocoa/browser_window_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
index a351999bf3d107f86943cdc90c25115a74ae9f80..d2bb6126ecce0f36d6020757258782f5b5b3bfb1 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
@@ -89,8 +89,10 @@ BrowserWindowCocoa::BrowserWindowCocoa(Browser* browser,
pref_change_registrar_.Init(browser_->profile()->GetPrefs());
pref_change_registrar_.Add(prefs::kShowBookmarkBar, this);
-
- initial_show_state_ = chrome::GetSavedWindowShowState(browser_);
+ gfx::Rect bounds;
+ chrome::GetSavedWindowBoundsAndShowState(browser_,
+ &bounds,
+ &initial_show_state_);
sky 2012/10/08 21:01:25 Same comment about initializing initial_show_state
Mr4D (OOO till 08-26) 2012/10/08 23:04:27 Done.
}
BrowserWindowCocoa::~BrowserWindowCocoa() {

Powered by Google App Engine
This is Rietveld 408576698