Refactored API method GetLanguageList() into TranslatePrefs.
The method GetLanguageList() exposed by the private API returns metadata for each available language. It is meant to be used by all Desktop platforms, but now we need to move it into a location that can be used by Android and iOS too. In this change, I have moved the logic to TranslatePrefs. Note that only the logic that is relevant to all platform has been moved: the private API for language settings still computes the info used by ChromeOS and Windows only. This change does not change any Chrome behaviour. Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: I648b9ed524f1c580f0a813ebf90f06b070d1530b Reviewed-on: https://chromium-review.googlesource.com/767855 Commit-Queue: Claudio M <claudiomagni@chromium.org> Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Reviewed-by:
Michael Giuffrida <michaelpg@chromium.org> Reviewed-by:
Michael Martis <martis@chromium.org> Reviewed-by:
Leo Zhang <googleo@chromium.org> Cr-Commit-Position: refs/heads/master@{#516978}
Showing
Please register or sign in to comment