summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch
diff options
context:
space:
mode:
authorShokara Kou <kou@13f0.net>2022-06-08 09:01:55 -0400
committerShokara Kou <kou@13f0.net>2022-06-08 09:01:55 -0400
commita0c108527676be8226cbc43e7e17f5bd2672a919 (patch)
tree87e8b4f26377ba6acbbdaa4c66e3491c5425f22d /www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch
parent45b7fe33fcca66111d3f1bba4b75e5438362dd80 (diff)
Revert "update ugc to 100.0.4896.75"
This reverts commit 45b7fe33fcca66111d3f1bba4b75e5438362dd80.
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.patch20
1 files changed, 10 insertions, 10 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
index a7a43aa..87da094 100644
--- 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
@@ -1,21 +1,21 @@
1# Add flag --hide-crashed-bubble to hide the bubble box: 1# Add flag --hide-crashed-bubble to hide the bubble box:
2# "Restore Pages? Chromium didn't shut down correctly." 2# "Restore Pages? Chromium didn't shut down correctly."
3 3
4--- a/chrome/browser/ui/startup/infobar_utils.cc 4--- chrome/browser/ui/startup/startup_browser_creator_impl.cc.orig
5+++ b/chrome/browser/ui/startup/infobar_utils.cc 5+++ chrome/browser/ui/startup/startup_browser_creator_impl.cc
6@@ -80,7 +80,8 @@ void AddInfoBarsIfNecessary(Browser* bro 6@@ -648,7 +648,8 @@ void StartupBrowserCreatorImpl::AddInfoB
7 if (command_line_.HasSwitch(switches::kKioskMode))
7 return; 8 return;
8 9
9 // Web apps should not display the session restore bubble (crbug.com/1264121) 10- if (HasPendingUncleanExit(browser->profile()))
10- if (!is_web_app && HasPendingUncleanExit(browser->profile())) 11+ if (HasPendingUncleanExit(browser->profile()) &&
11+ if (!is_web_app && HasPendingUncleanExit(browser->profile()) && 12+ !command_line_.HasSwitch("hide-crashed-bubble"))
12+ !startup_command_line.HasSwitch("hide-crashed-bubble"))
13 SessionCrashedBubble::ShowIfNotOffTheRecordProfile( 13 SessionCrashedBubble::ShowIfNotOffTheRecordProfile(
14 browser, /*skip_tab_checking=*/false); 14 browser, /*skip_tab_checking=*/false);
15 15
16--- a/chrome/browser/ungoogled_flag_entries.h 16--- chrome/browser/ungoogled_flag_entries.h.orig
17+++ b/chrome/browser/ungoogled_flag_entries.h 17+++ chrome/browser/ungoogled_flag_entries.h
18@@ -28,4 +28,8 @@ 18@@ -32,4 +32,8 @@
19 "Show avatar/people/profile button", 19 "Show avatar/people/profile button",
20 "Show avatar/people/profile button in the browser toolbar. ungoogled-chromium flag.", 20 "Show avatar/people/profile button in the browser toolbar. ungoogled-chromium flag.",
21 kOsDesktop, MULTI_VALUE_TYPE(kShowAvatarButtonChoices)}, 21 kOsDesktop, MULTI_VALUE_TYPE(kShowAvatarButtonChoices)},