add-flag-to-hide-crashed-bubble.patch 679 B

123456789101112131415
  1. # Add flag --hide-crashed-bubble to hide the bubble box:
  2. # "Restore Pages? Chromium didn't shut down correctly."
  3. --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
  4. +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
  5. @@ -879,7 +879,8 @@ void StartupBrowserCreatorImpl::AddInfoB
  6. if (command_line_.HasSwitch(switches::kKioskMode))
  7. return;
  8. - if (HasPendingUncleanExit(browser->profile()))
  9. + if (HasPendingUncleanExit(browser->profile()) &&
  10. + !command_line_.HasSwitch("hide-crashed-bubble"))
  11. SessionCrashedBubble::ShowIfNotOffTheRecordProfile(browser);
  12. // The below info bars are only added to the first profile which is launched.