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

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

Issue 9211020: Don't use command line or prefs for popup saved state (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 33974619add3996ae531bc2b7d89655daa766f96..413e64092531d3972ce2b0bec6dcba9df31fcb05 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -946,6 +946,12 @@ gfx::Rect Browser::GetSavedWindowBounds() const {
}
ui::WindowShowState Browser::GetSavedWindowShowState() const {
+ // Only tabbed browsers use the command line or preference state.
+ if (!is_type_tabbed()) {
+ return (show_state_ == ui::SHOW_STATE_DEFAULT)
+ ? ui::SHOW_STATE_NORMAL : show_state_;
+ }
+
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kStartMaximized))
return ui::SHOW_STATE_MAXIMIZED;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698