AW: improve locale for getSafeBrowsingPrivacyPolicyUrl
This API returns a URL containing the locale as a query parameter. The Google help center uses this to decide in which language to display the page. The old method for obtaining the locale would sometimes return a locale in a format the help center didn't recognize (e.g., "cs-CZ"). Instead, use the UIManager to fetch the locale, to stay consistent with how we generate the URL for actual interstitial pages. This new approach seems more consistent with the help center's expectations (e.g., "cs" instead of "cs-CZ"). the API, observe the page displays in the proper language Bug: 820694 Test: manual - Put device in Czech (cs/cs-CZ) and visit the url returned Change-Id: I72606a2eee00f5b1890f703593267e93fdd645ff Reviewed-on: https://chromium-review.googlesource.com/958229Reviewed-by:Bo <boliu@chromium.org> Reviewed-by:
Changwan Ryu <changwan@chromium.org> Commit-Queue: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#542610}
Showing
Please register or sign in to comment