summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch
diff options
context:
space:
mode:
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.patch18
1 files changed, 8 insertions, 10 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 406abe4..8fe39bd 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--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc 1--- chrome/browser/ui/views/toolbar/toolbar_view.cc.orig
2+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc 2+++ chrome/browser/ui/views/toolbar/toolbar_view.cc
3@@ -284,14 +284,30 @@ void ToolbarView::Init() { 3@@ -273,12 +273,28 @@ 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,8 +19,6 @@
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();
24 #endif 22 #endif
25+ 23+
26+ if (flag_value == "always") 24+ if (flag_value == "always")
@@ -33,8 +31,8 @@
33 if (base::FeatureList::IsEnabled( 31 if (base::FeatureList::IsEnabled(
34 autofill::features::kAutofillEnableToolbarStatusChip)) { 32 autofill::features::kAutofillEnableToolbarStatusChip)) {
35 // The avatar button is contained inside the page-action container and 33 // The avatar button is contained inside the page-action container and
36--- a/chrome/browser/ungoogled_flag_choices.h 34--- chrome/browser/ungoogled_flag_choices.h.orig
37+++ b/chrome/browser/ungoogled_flag_choices.h 35+++ chrome/browser/ungoogled_flag_choices.h
38@@ -13,4 +13,16 @@ const FeatureEntry::Choice kExtensionHan 36@@ -13,4 +13,16 @@ const FeatureEntry::Choice kExtensionHan
39 "extension-mime-request-handling", 37 "extension-mime-request-handling",
40 "always-prompt-for-install"}, 38 "always-prompt-for-install"},
@@ -52,9 +50,9 @@
52+ "never"} 50+ "never"}
53+}; 51+};
54 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 52 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
55--- a/chrome/browser/ungoogled_flag_entries.h 53--- chrome/browser/ungoogled_flag_entries.h.orig
56+++ b/chrome/browser/ungoogled_flag_entries.h 54+++ chrome/browser/ungoogled_flag_entries.h
57@@ -24,4 +24,8 @@ 55@@ -28,4 +28,8 @@
58 "Force punycode hostnames", 56 "Force punycode hostnames",
59 "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.", 57 "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.",
60 kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")}, 58 kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")},