diff options
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch')
| -rw-r--r-- | www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch index b0358e8..5c9dbac 100644 --- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch +++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | --- chrome/browser/ui/tabs/tab_strip_model.cc.orig | 1 | --- a/chrome/browser/ui/tabs/tab_strip_model.cc |
| 2 | +++ chrome/browser/ui/tabs/tab_strip_model.cc | 2 | +++ b/chrome/browser/ui/tabs/tab_strip_model.cc |
| 3 | @@ -11,6 +11,7 @@ | 3 | @@ -11,6 +11,7 @@ |
| 4 | #include <utility> | 4 | #include <utility> |
| 5 | 5 | ||
| @@ -7,8 +7,8 @@ | |||
| 7 | +#include "base/command_line.h" | 7 | +#include "base/command_line.h" |
| 8 | #include "base/containers/flat_map.h" | 8 | #include "base/containers/flat_map.h" |
| 9 | #include "base/cxx17_backports.h" | 9 | #include "base/cxx17_backports.h" |
| 10 | #include "base/metrics/histogram_macros.h" | 10 | #include "base/memory/raw_ptr.h" |
| 11 | @@ -1779,6 +1780,10 @@ bool TabStripModel::CloseTabs(base::span | 11 | @@ -1875,6 +1876,10 @@ bool TabStripModel::CloseTabs(base::span |
| 12 | if (items.empty()) | 12 | if (items.empty()) |
| 13 | return true; | 13 | return true; |
| 14 | 14 | ||
| @@ -19,8 +19,8 @@ | |||
| 19 | const bool closing_all = static_cast<int>(items.size()) == count(); | 19 | const bool closing_all = static_cast<int>(items.size()) == count(); |
| 20 | base::WeakPtr<TabStripModel> ref = weak_factory_.GetWeakPtr(); | 20 | base::WeakPtr<TabStripModel> ref = weak_factory_.GetWeakPtr(); |
| 21 | if (closing_all) { | 21 | if (closing_all) { |
| 22 | --- chrome/browser/ungoogled_flag_choices.h.orig | 22 | --- a/chrome/browser/ungoogled_flag_choices.h |
| 23 | +++ chrome/browser/ungoogled_flag_choices.h | 23 | +++ b/chrome/browser/ungoogled_flag_choices.h |
| 24 | @@ -60,4 +60,10 @@ const FeatureEntry::Choice kOmniboxAutoc | 24 | @@ -60,4 +60,10 @@ const FeatureEntry::Choice kOmniboxAutoc |
| 25 | "omnibox-autocomplete-filtering", | 25 | "omnibox-autocomplete-filtering", |
| 26 | "search-bookmarks-chrome"}, | 26 | "search-bookmarks-chrome"}, |
| @@ -32,9 +32,9 @@ | |||
| 32 | + "never"}, | 32 | + "never"}, |
| 33 | +}; | 33 | +}; |
| 34 | #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ | 34 | #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ |
| 35 | --- chrome/browser/ungoogled_flag_entries.h.orig | 35 | --- a/chrome/browser/ungoogled_flag_entries.h |
| 36 | +++ chrome/browser/ungoogled_flag_entries.h | 36 | +++ b/chrome/browser/ungoogled_flag_entries.h |
| 37 | @@ -52,4 +52,8 @@ | 37 | @@ -48,4 +48,8 @@ |
| 38 | "Omnibox Autocomplete Filtering", | 38 | "Omnibox Autocomplete Filtering", |
| 39 | "Restrict omnibox autocomplete results to a combination of search suggestions (if enabled), bookmarks, and internal chrome pages. ungoogled-chromium flag.", | 39 | "Restrict omnibox autocomplete results to a combination of search suggestions (if enabled), bookmarks, and internal chrome pages. ungoogled-chromium flag.", |
| 40 | kOsAll, MULTI_VALUE_TYPE(kOmniboxAutocompleteFiltering)}, | 40 | kOsAll, MULTI_VALUE_TYPE(kOmniboxAutocompleteFiltering)}, |
