add-flag-to-hide-crashed-bubble.patch 603 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. @@ -827,7 +827,8 @@ void StartupBrowserCreatorImpl::AddInfoB
  6. if (!browser || !profile_ || browser->tab_strip_model()->count() == 0)
  7. return;
  8. - if (HasPendingUncleanExit(browser->profile())) {
  9. + if (HasPendingUncleanExit(browser->profile()) &&
  10. + !command_line_.HasSwitch("hide-crashed-bubble")) {
  11. SessionCrashedBubble::Show(browser);
  12. }