Index: chrome/browser/sessions/session_restore.cc |
=================================================================== |
--- chrome/browser/sessions/session_restore.cc (revision 98696) |
+++ chrome/browser/sessions/session_restore.cc (working copy) |
@@ -598,17 +598,8 @@ |
// tabbed browsers exist. |
Browser* last_browser = NULL; |
bool has_tabbed_browser = false; |
- |
- // Determine if there is a visible window. |
- bool has_visible_browser = false; |
for (std::vector<SessionWindow*>::iterator i = windows->begin(); |
i != windows->end(); ++i) { |
- if ((*i)->show_state != ui::SHOW_STATE_MINIMIZED) |
- has_visible_browser = true; |
- } |
- |
- for (std::vector<SessionWindow*>::iterator i = windows->begin(); |
- i != windows->end(); ++i) { |
Browser* browser = NULL; |
if (!has_tabbed_browser && (*i)->type == Browser::TYPE_TABBED) |
has_tabbed_browser = true; |
@@ -622,15 +613,10 @@ |
chromeos::BootTimesLoader::Get()->AddLoginTimeMarker( |
"SessionRestore-CreateRestoredBrowser-Start", false); |
#endif |
- // Show the first window if none are visible. |
- ui::WindowShowState show_state = (*i)->show_state; |
- if (!has_visible_browser) { |
- show_state = ui::SHOW_STATE_NORMAL; |
- has_visible_browser = true; |
- } |
- |
browser = CreateRestoredBrowser( |
- static_cast<Browser::Type>((*i)->type), (*i)->bounds, show_state); |
+ static_cast<Browser::Type>((*i)->type), |
+ (*i)->bounds, |
+ (*i)->show_state); |
#if defined(OS_CHROMEOS) |
chromeos::BootTimesLoader::Get()->AddLoginTimeMarker( |
"SessionRestore-CreateRestoredBrowser-End", false); |