Remove help menu item: Redirect help link to github repo in chrome://settings/help (#1983)

This commit is contained in:
Carmelo Messina
2025-04-22 17:32:54 +02:00
parent 5a857b9c85
commit acdc80cf6b
+11 -3
View File
@@ -24,8 +24,8 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
.../settings/PreloadPagesSettingsFragmentBase.java | 1 +
.../PrivacySandboxSettingsBaseFragment.java | 1 +
.../settings/SafeBrowsingSettingsFragmentBase.java | 1 +
chrome/browser/ui/chrome_pages.cc | 1 +
21 files changed, 18 insertions(+), 17 deletions(-)
chrome/browser/ui/chrome_pages.cc | 9 +++++++++
21 files changed, 26 insertions(+), 17 deletions(-)
diff --git a/chrome/android/java/res/menu/main_menu.xml b/chrome/android/java/res/menu/main_menu.xml
--- a/chrome/android/java/res/menu/main_menu.xml
@@ -263,10 +263,18 @@ diff --git a/chrome/browser/safe_browsing/android/java/src/org/chromium/chrome/b
diff --git a/chrome/browser/ui/chrome_pages.cc b/chrome/browser/ui/chrome_pages.cc
--- a/chrome/browser/ui/chrome_pages.cc
+++ b/chrome/browser/ui/chrome_pages.cc
@@ -138,6 +138,7 @@ void LaunchReleaseNotesImpl(Profile* profile, apps::LaunchSource source) {
@@ -138,6 +138,15 @@ void LaunchReleaseNotesImpl(Profile* profile, apps::LaunchSource source) {
// shown in the last active browser. If there is no such browser, a new browser
// is created.
void ShowHelpImpl(Browser* browser, Profile* profile, HelpSource source) {
+ if (source == chrome::HELP_SOURCE_WEBUI) {
+ GURL url = GURL("https://github.com/uazo/cromite/issues");
+ if (browser) {
+ ShowSingletonTab(browser, url);
+ } else {
+ ShowSingletonTab(profile, url);
+ }
+ }
+ if ((true)) return;
base::RecordAction(UserMetricsAction("ShowHelpTab"));
#if BUILDFLAG(IS_CHROMEOS) && BUILDFLAG(GOOGLE_CHROME_BRANDING)