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

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

Issue 9270017: Merge 118174 - Don't use command line or prefs for popup saved state (Closed) Base URL: svn://svn.chromium.org/chrome/branches/963/src/
Patch Set: 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
===================================================================
--- chrome/browser/ui/browser.cc (revision 118462)
+++ chrome/browser/ui/browser.cc (working copy)
@@ -933,6 +933,12 @@
}
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