• Evan Stade's avatar
    WebLayer: set renderer locale/language to match system locale · 47692796
    Evan Stade authored
    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: default avatarJohn Abd-El-Malek <jam@chromium.org>
    Commit-Queue: Evan Stade <estade@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#715444}
    47692796
content_browser_client_impl.cc 11 KB