Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Issue 2506203002: Fix language switching (Closed)

Created:
4 years, 1 month ago by David Tseng
Modified:
4 years, 1 month ago
Reviewers:
dmazzoni
CC:
chromium-reviews, alemate+watch_chromium.org, oshima+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, arv+watch_chromium.org, dtseng+watch_chromium.org, dmazzoni+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix language switching Ensure we're - querying for the user's preferred languages via chrome.i18n.getAcceptLanguages - matching in both directions i.e. voice.lang starts with of ui locale and ui locale starts with voice lang. For example, es, es-ES vs es-ES, es. TEST=add Spanish as a voice and get the voice to be first in the languages and input screen (UI is somewhat inaccessible). Verify that ChromeVox, when re-started, speaks in Spanish. Previously, we would have picked German (the last clause of the our matching predicates which just picks the first voice). BUG=591453 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/c1cab294711bca021f9e21a06e9183ca88b8c62a Cr-Commit-Position: refs/heads/master@{#433747}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix the test. #

Patch Set 3 : No tts lang. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -31 lines) Patch
M chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js View 1 2 2 chunks +23 lines, -17 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background_test.extjs View 1 1 chunk +48 lines, -14 lines 0 comments Download

Messages

Total messages: 33 (21 generated)
David Tseng
4 years, 1 month ago (2016-11-16 23:36:24 UTC) #4
dmazzoni
lgtm https://codereview.chromium.org/2506203002/diff/1/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js File chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js (right): https://codereview.chromium.org/2506203002/diff/1/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js#newcode60 chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js:60: chrome.i18n.getUILanguage(); Did you confirm that this is in ...
4 years, 1 month ago (2016-11-17 22:49:38 UTC) #5
David Tseng
https://codereview.chromium.org/2506203002/diff/1/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js File chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js (right): https://codereview.chromium.org/2506203002/diff/1/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js#newcode60 chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js:60: chrome.i18n.getUILanguage(); On 2016/11/17 22:49:38, dmazzoni wrote: > Did you ...
4 years, 1 month ago (2016-11-17 23:03:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2506203002/1
4 years, 1 month ago (2016-11-17 23:05:12 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/275177)
4 years, 1 month ago (2016-11-18 00:55:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2506203002/20001
4 years, 1 month ago (2016-11-21 22:02:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2506203002/20001
4 years, 1 month ago (2016-11-21 22:09:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2506203002/40001
4 years, 1 month ago (2016-11-21 23:55:29 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/275746)
4 years, 1 month ago (2016-11-22 00:01:29 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2506203002/40001
4 years, 1 month ago (2016-11-22 00:40:21 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-22 02:18:29 UTC) #31
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 02:21:04 UTC) #33
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c1cab294711bca021f9e21a06e9183ca88b8c62a
Cr-Commit-Position: refs/heads/master@{#433747}

Powered by Google App Engine
This is Rietveld 408576698