diff options
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.patch | 20 |
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 87da094..a7a43aa 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 | --- chrome/browser/ui/startup/startup_browser_creator_impl.cc.orig | 4 | --- a/chrome/browser/ui/startup/infobar_utils.cc |
| 5 | +++ chrome/browser/ui/startup/startup_browser_creator_impl.cc | 5 | +++ b/chrome/browser/ui/startup/infobar_utils.cc |
| 6 | @@ -648,7 +648,8 @@ void StartupBrowserCreatorImpl::AddInfoB | 6 | @@ -80,7 +80,8 @@ void AddInfoBarsIfNecessary(Browser* bro |
| 7 | if (command_line_.HasSwitch(switches::kKioskMode)) | ||
| 8 | return; | 7 | return; |
| 9 | 8 | ||
| 10 | - if (HasPendingUncleanExit(browser->profile())) | 9 | // Web apps should not display the session restore bubble (crbug.com/1264121) |
| 11 | + if (HasPendingUncleanExit(browser->profile()) && | 10 | - if (!is_web_app && HasPendingUncleanExit(browser->profile())) |
| 12 | + !command_line_.HasSwitch("hide-crashed-bubble")) | 11 | + if (!is_web_app && HasPendingUncleanExit(browser->profile()) && |
| 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 | --- chrome/browser/ungoogled_flag_entries.h.orig | 16 | --- a/chrome/browser/ungoogled_flag_entries.h |
| 17 | +++ chrome/browser/ungoogled_flag_entries.h | 17 | +++ b/chrome/browser/ungoogled_flag_entries.h |
| 18 | @@ -32,4 +32,8 @@ | 18 | @@ -28,4 +28,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)}, |
