From 98a9f80198c3c0bcbabd65160ee3385505b89f43 Mon Sep 17 00:00:00 2001 From: brave-builds Date: Wed, 18 Sep 2024 13:14:52 +0000 Subject: [PATCH] Uplift of #25625 (squashed) to release --- chromium_src/chrome/browser/ui/cocoa/main_menu_builder.mm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chromium_src/chrome/browser/ui/cocoa/main_menu_builder.mm b/chromium_src/chrome/browser/ui/cocoa/main_menu_builder.mm index dff098ba4aa8..fcac21333573 100644 --- a/chromium_src/chrome/browser/ui/cocoa/main_menu_builder.mm +++ b/chromium_src/chrome/browser/ui/cocoa/main_menu_builder.mm @@ -6,6 +6,7 @@ #include "brave/app/brave_command_ids.h" #include "brave/browser/ui/commander/commander_service.h" #include "brave/grit/brave_generated_resources.h" +#include "chrome/app/chrome_command_ids.h" #include "chrome/grit/generated_resources.h" #include "components/dom_distiller/core/dom_distiller_features.h" #include "components/grit/brave_components_strings.h" @@ -18,6 +19,7 @@ constexpr int kHelpMacResourceId = IDS_HELP_MAC; constexpr int kMediaRouterMenuItemTitleResourceId = IDS_MEDIA_ROUTER_MENU_ITEM_TITLE; +constexpr int kShowGoogleLensShortcut = IDC_SHOW_GOOGLE_LENS_SHORTCUT; } // namespace // Insert "New Private Window with Tor" in "File" menu @@ -57,8 +59,14 @@ .remove_if(is_pwa || !commander::IsEnabled()), \ Item(kMediaRouterMenuItemTitleResourceId +// Remove "Always Show Google Lens Shortcut" +#undef IDC_SHOW_GOOGLE_LENS_SHORTCUT +#define IDC_SHOW_GOOGLE_LENS_SHORTCUT \ + kShowGoogleLensShortcut).remove_if(true + #include "src/chrome/browser/ui/cocoa/main_menu_builder.mm" +#undef IDC_SHOW_GOOGLE_LENS_SHORTCUT #undef IDS_MEDIA_ROUTER_MENU_ITEM_TITLE #undef IDS_MUTE_SITE_MAC #define IDS_MUTE_SITE_MAC kMuteSiteResourceId