[NextBrowser] Revert! Adding Translate to english option in context menu 77/321677/2
authormayur.jain <mayur.jain@samsung.com>
Wed, 26 Mar 2025 12:39:32 +0000 (18:09 +0530)
committerBot Blink <blinkbot@samsung.com>
Wed, 26 Mar 2025 13:00:07 +0000 (13:00 +0000)
-Revert code from https://review.tizen.org/gerrit/gitweb?p=platform/framework/web/chromium-efl.git;a=commit;h=038a8730b879b5102c058b34bc932e458ec866b8
-Removing change for enabling translate option in right click menu

Change-Id: I9b553a8fe65c76fe437fc2dbe3cedfa670d608c9
Signed-off-by: mayur.jain <mayur.jain@samsung.com>
chrome/browser/renderer_context_menu/render_view_context_menu.cc

index f72df4c31bb2ab09c2178800c641aeeb8c1f1208..0f57eaaaf5b4dcf668d0164abbfd4f1b8eabca17 100644 (file)
@@ -1151,17 +1151,12 @@ void RenderViewContextMenu::InitMenu() {
 
   // Partial Translate is not supported on ChromeOS.
 #if !BUILDFLAG(IS_CHROMEOS)
-#if defined(SAMSUNG_NEXT_BROWSER)
-  LOG(INFO) << "Adding Translate to english option";
-  AppendPartialTranslateItem();
-#else  // SAMSUNG_NEXT_BROWSER
   if (content_type_->SupportsGroup(
           ContextMenuContentType::ITEM_GROUP_PARTIAL_TRANSLATE) &&
       search::DefaultSearchProviderIsGoogle(GetProfile()) &&
       CanTranslate(/*menu_logging=*/false)) {
     AppendPartialTranslateItem();
   }
-#endif
 #endif  // !BUILDFLAG(IS_CHROMEOS)
 
   // Spell check and writing direction options are not currently supported by