summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch')
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch26
1 files changed, 0 insertions, 26 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch
deleted file mode 100644
index 87da094..0000000
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1# Add flag --hide-crashed-bubble to hide the bubble box:
2# "Restore Pages? Chromium didn't shut down correctly."
3
4--- chrome/browser/ui/startup/startup_browser_creator_impl.cc.orig
5+++ chrome/browser/ui/startup/startup_browser_creator_impl.cc
6@@ -648,7 +648,8 @@ void StartupBrowserCreatorImpl::AddInfoB
7 if (command_line_.HasSwitch(switches::kKioskMode))
8 return;
9
10- if (HasPendingUncleanExit(browser->profile()))
11+ if (HasPendingUncleanExit(browser->profile()) &&
12+ !command_line_.HasSwitch("hide-crashed-bubble"))
13 SessionCrashedBubble::ShowIfNotOffTheRecordProfile(
14 browser, /*skip_tab_checking=*/false);
15
16--- chrome/browser/ungoogled_flag_entries.h.orig
17+++ chrome/browser/ungoogled_flag_entries.h
18@@ -32,4 +32,8 @@
19 "Show avatar/people/profile button",
20 "Show avatar/people/profile button in the browser toolbar. ungoogled-chromium flag.",
21 kOsDesktop, MULTI_VALUE_TYPE(kShowAvatarButtonChoices)},
22+ {"hide-crashed-bubble",
23+ "Hide crashed bubble",
24+ "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.",
25+ kOsAll, SINGLE_VALUE_TYPE("hide-crashed-bubble")},
26 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_