Chromium Code Reviews
DescriptionLanguage settings: Fix Restart and Remove buttons shown at wrong times
Language settings makes the faulty assumption that the app locale
(navigator.language) will match the the preferred app locale (intl.app_locale).
For some languages, we map a language code to a different locale. For example,
en-ZA is mapped to en-GB when getting the application locale, so the preference
won't match the actual locale used. See l10n_util::CheckAndResolveLocale for
other wacky examples.
Stop using navigator.language when the intl.app_locale pref is available. Also
move more logic into the model and stop checking intl.app_locale in the UI.
Use a more defensive check for the Restart button: show if the locale preference
has changed from its initial value.
BUG=561227, 649588, 633661
R=stevenjb@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/4cb2126002cd187035ba90ee13ebda77e16d81f6
Cr-Commit-Position: refs/heads/master@{#438403}
Patch Set 1 #
Total comments: 1
Patch Set 2 : . #
Total comments: 9
Patch Set 3 : feedback #
Messages
Total messages: 13 (6 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||