diff options
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch')
| -rw-r--r-- | www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch index 8fe39bd..406abe4 100644 --- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch +++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | --- chrome/browser/ui/views/toolbar/toolbar_view.cc.orig | 1 | --- a/chrome/browser/ui/views/toolbar/toolbar_view.cc |
| 2 | +++ chrome/browser/ui/views/toolbar/toolbar_view.cc | 2 | +++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc |
| 3 | @@ -273,12 +273,28 @@ void ToolbarView::Init() { | 3 | @@ -284,14 +284,30 @@ void ToolbarView::Init() { |
| 4 | 4 | ||
| 5 | std::unique_ptr<ToolbarAccountIconContainerView> | 5 | std::unique_ptr<ToolbarAccountIconContainerView> |
| 6 | toolbar_account_icon_container; | 6 | toolbar_account_icon_container; |
| @@ -19,6 +19,8 @@ | |||
| 19 | - show_avatar_toolbar_button = browser_->profile()->IsOffTheRecord() || | 19 | - show_avatar_toolbar_button = browser_->profile()->IsOffTheRecord() || |
| 20 | - browser_->profile()->IsGuestSession(); | 20 | - browser_->profile()->IsGuestSession(); |
| 21 | + show_avatar_toolbar_button = in_incognito_or_guest_mode; | 21 | + show_avatar_toolbar_button = in_incognito_or_guest_mode; |
| 22 | #elif BUILDFLAG(IS_CHROMEOS_LACROS) | ||
| 23 | show_avatar_toolbar_button = !profiles::IsPublicSession(); | ||
| 22 | #endif | 24 | #endif |
| 23 | + | 25 | + |
| 24 | + if (flag_value == "always") | 26 | + if (flag_value == "always") |
| @@ -31,8 +33,8 @@ | |||
| 31 | if (base::FeatureList::IsEnabled( | 33 | if (base::FeatureList::IsEnabled( |
| 32 | autofill::features::kAutofillEnableToolbarStatusChip)) { | 34 | autofill::features::kAutofillEnableToolbarStatusChip)) { |
| 33 | // The avatar button is contained inside the page-action container and | 35 | // The avatar button is contained inside the page-action container and |
| 34 | --- chrome/browser/ungoogled_flag_choices.h.orig | 36 | --- a/chrome/browser/ungoogled_flag_choices.h |
| 35 | +++ chrome/browser/ungoogled_flag_choices.h | 37 | +++ b/chrome/browser/ungoogled_flag_choices.h |
| 36 | @@ -13,4 +13,16 @@ const FeatureEntry::Choice kExtensionHan | 38 | @@ -13,4 +13,16 @@ const FeatureEntry::Choice kExtensionHan |
| 37 | "extension-mime-request-handling", | 39 | "extension-mime-request-handling", |
| 38 | "always-prompt-for-install"}, | 40 | "always-prompt-for-install"}, |
| @@ -50,9 +52,9 @@ | |||
| 50 | + "never"} | 52 | + "never"} |
| 51 | +}; | 53 | +}; |
| 52 | #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ | 54 | #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ |
| 53 | --- chrome/browser/ungoogled_flag_entries.h.orig | 55 | --- a/chrome/browser/ungoogled_flag_entries.h |
| 54 | +++ chrome/browser/ungoogled_flag_entries.h | 56 | +++ b/chrome/browser/ungoogled_flag_entries.h |
| 55 | @@ -28,4 +28,8 @@ | 57 | @@ -24,4 +24,8 @@ |
| 56 | "Force punycode hostnames", | 58 | "Force punycode hostnames", |
| 57 | "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.", | 59 | "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.", |
| 58 | kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")}, | 60 | kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")}, |
