New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 632545 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Context Menu does not work for TH/ID/MY experiment

Project Member Reported by ftang@chromium.org, Jul 29 2016

Issue description

Version: M52 or later
OS: ALL

The current code in chrome/browser/renderer_context_menu/render_view_context_menu.cc always use the Application Locale for the context menu "Translate To ... " language. This should be switch to using the TranslateManager::GetTargetLanguage()" instead so it will also reflect in the TH/ID/MY experiment.

I found this bug by looking at the code. I do not know how to reproduce this since it require the user be in Thailand/Malaysia or Indonesia as well as in the experiment to see the issue. 

groby - how can we in black box test to fool the chrome to think we are in Thailand?

We should switch the code to use TranslateManager::GetTargetLanguage(). This is also needed for the ULP integration.

 
Project Member

Comment 2 by bugdroid1@chromium.org, Jul 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9939a671897e4500ecb8fa83ec43ca497a8ab161

commit 9939a671897e4500ecb8fa83ec43ca497a8ab161
Author: ftang <ftang@chromium.org>
Date: Fri Jul 29 06:02:32 2016

Use TranslateManager::GetTargetLanguage() for context menu

BUG= 632545 

Review-Url: https://codereview.chromium.org/2189283002
Cr-Commit-Position: refs/heads/master@{#408587}

[modify] https://crrev.com/9939a671897e4500ecb8fa83ec43ca497a8ab161/chrome/browser/renderer_context_menu/render_view_context_menu.cc

Comment 3 by ftang@chromium.org, Jul 29 2016

groby- how can I fake myself to be in Thailand to verify this fix?

Comment 4 by groby@chromium.org, Aug 5 2016

chrome://translate-internals/

See "Override variations country"

Comment 5 by ftang@chromium.org, Aug 11 2016

Status: Fixed (was: Assigned)
Components: -UI>Browser>Translate UI>Browser>Language>Translate

Sign in to add a comment