Skip to content

Commit

Permalink
[MacOS] Remove Google Lense menu item in View menu. (uplift to 1.70.x) (
Browse files Browse the repository at this point in the history
#25630)

Uplift of #25625 (squashed) to release
  • Loading branch information
brave-builds committed Sep 19, 2024
1 parent 0656184 commit 6658139
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chromium_src/chrome/browser/ui/cocoa/main_menu_builder.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6658139

Please sign in to comment.