WebLayer: set renderer locale/language to match system locale
This fixes navigator.language, navigator.languages and the ACCEPT-LANGUAGE http header. For now, the locale is only read at startup. In the future, WebLayer should listen for changes to the system locale and allow the client to specify an active locale that is not the system's default. LANGUAGE environment variable for Linux WebLayer shell. Navigate to test pages in linked bug, or google.com Test: set Android system language to non English, or use Bug: 1022616 Change-Id: Id680f38953c1a81fc155ef0d3434fa8fc0d59b6d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1906635Reviewed-by:John Abd-El-Malek <jam@chromium.org> Commit-Queue: Evan Stade <estade@chromium.org> Cr-Commit-Position: refs/heads/master@{#715444}
Showing
weblayer/browser/i18n_util.h
0 → 100644
Please register or sign in to comment