| Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc
|
| diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
|
| index 9ea079f53d99aac2954565d3968c24ca1fd45c72..67da4039e9dee1bbe2009b991b09578b78d4cda0 100644
|
| --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
|
| +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
|
| @@ -844,11 +844,9 @@ void StartupBrowserCreatorImpl::AddInfoBarsIfNecessary(
|
| if (!browser || !profile_ || browser->tab_strip_model()->count() == 0)
|
| return;
|
|
|
| - if (HasPendingUncleanExit(browser->profile())) {
|
| - if (!command_line_.HasSwitch(switches::kEnableSessionCrashedBubble) ||
|
| - !ShowSessionCrashedBubble(browser))
|
| + if (HasPendingUncleanExit(browser->profile()) &&
|
| + !ShowSessionCrashedBubble(browser, command_line_))
|
| SessionCrashedInfoBarDelegate::Create(browser);
|
| - }
|
|
|
| // The below info bars are only added to the first profile which is launched.
|
| // Other profiles might be restoring the browsing sessions asynchronously,
|
|
|