1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Add flag --hide-crashed-bubble to hide the bubble box:
# "Restore Pages? Chromium didn't shut down correctly."
--- chrome/browser/ui/startup/startup_browser_creator_impl.cc.orig
+++ chrome/browser/ui/startup/startup_browser_creator_impl.cc
@@ -648,7 +648,8 @@ void StartupBrowserCreatorImpl::AddInfoB
if (command_line_.HasSwitch(switches::kKioskMode))
return;
- if (HasPendingUncleanExit(browser->profile()))
+ if (HasPendingUncleanExit(browser->profile()) &&
+ !command_line_.HasSwitch("hide-crashed-bubble"))
SessionCrashedBubble::ShowIfNotOffTheRecordProfile(
browser, /*skip_tab_checking=*/false);
--- chrome/browser/ungoogled_flag_entries.h.orig
+++ chrome/browser/ungoogled_flag_entries.h
@@ -32,4 +32,8 @@
"Show avatar/people/profile button",
"Show avatar/people/profile button in the browser toolbar. ungoogled-chromium flag.",
kOsDesktop, MULTI_VALUE_TYPE(kShowAvatarButtonChoices)},
+ {"hide-crashed-bubble",
+ "Hide crashed bubble",
+ "Hides the bubble box with the message \"Restore Pages? Chromium didn't shut down correctly.\" that shows on startup after the browser did not exit cleanly. ungoogled-chromium flag.",
+ kOsAll, SINGLE_VALUE_TYPE("hide-crashed-bubble")},
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|