Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1322)

Issue 486203002: Do not switch the ICU locale when interacting with public session pods (Closed)

Created:
6 years, 4 months ago by bartfab (slow)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, jshin+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Do not switch the ICU locale when interacting with public session pods When the user is choosing a language for a public session, Chrome needs to verify that the selected locale is actually available, which can be done by calling GetApplicationLocale(). However, that method has side effects, in that it not only resolves the locale but also sets the ICU default locale. This causes the ICU default locale to change inadvertently while the user is interacting with the language picker. This CL introduces a variant of GetApplicationLocale() without side effects and uses that for public session pods. BUG=403553 TEST=Extended unit and browser tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291033

Patch Set 1 #

Patch Set 2 : Slightly extend browser test coverage. #

Total comments: 6

Patch Set 3 : Addressed comments. #

Total comments: 2

Patch Set 4 : Moved redundant test statements into helper methods. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -90 lines) Patch
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 3 19 chunks +70 lines, -76 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/l10n_util.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M ui/base/l10n/l10n_util.h View 1 chunk +7 lines, -1 line 0 comments Download
M ui/base/l10n/l10n_util.cc View 5 chunks +13 lines, -9 lines 0 comments Download
M ui/base/l10n/l10n_util_unittest.cc View 5 chunks +80 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
bartfab (slow)
Hi Tony, Could you review ui/base/l10n/l10n_util* please? Hi Pavel, Could you review chrome/browser/ui/webui/chromeos/login/l10n_util.cc please? Hi ...
6 years, 4 months ago (2014-08-19 13:01:00 UTC) #1
pneubeck (no reviews)
https://codereview.chromium.org/486203002/diff/20001/chrome/browser/chromeos/policy/device_local_account_browsertest.cc File chrome/browser/chromeos/policy/device_local_account_browsertest.cc (right): https://codereview.chromium.org/486203002/diff/20001/chrome/browser/chromeos/policy/device_local_account_browsertest.cc#newcode1422 chrome/browser/chromeos/policy/device_local_account_browsertest.cc:1422: EXPECT_EQ(l10n_util::GetLanguage(initial_locale_), from reading this file and the function declaration ...
6 years, 4 months ago (2014-08-19 15:09:30 UTC) #2
bartfab (slow)
https://codereview.chromium.org/486203002/diff/20001/chrome/browser/chromeos/policy/device_local_account_browsertest.cc File chrome/browser/chromeos/policy/device_local_account_browsertest.cc (right): https://codereview.chromium.org/486203002/diff/20001/chrome/browser/chromeos/policy/device_local_account_browsertest.cc#newcode1422 chrome/browser/chromeos/policy/device_local_account_browsertest.cc:1422: EXPECT_EQ(l10n_util::GetLanguage(initial_locale_), On 2014/08/19 15:09:30, pneubeck wrote: > from reading ...
6 years, 4 months ago (2014-08-19 17:03:02 UTC) #3
tony
https://codereview.chromium.org/486203002/diff/40001/chrome/browser/ui/webui/chromeos/login/l10n_util.cc File chrome/browser/ui/webui/chromeos/login/l10n_util.cc (right): https://codereview.chromium.org/486203002/diff/40001/chrome/browser/ui/webui/chromeos/login/l10n_util.cc#newcode463 chrome/browser/ui/webui/chromeos/login/l10n_util.cc:463: &l10n_util::GetApplicationLocale; Do you have access to g_browser_process or does ...
6 years, 4 months ago (2014-08-19 18:44:50 UTC) #4
bartfab (slow)
https://codereview.chromium.org/486203002/diff/40001/chrome/browser/ui/webui/chromeos/login/l10n_util.cc File chrome/browser/ui/webui/chromeos/login/l10n_util.cc (right): https://codereview.chromium.org/486203002/diff/40001/chrome/browser/ui/webui/chromeos/login/l10n_util.cc#newcode463 chrome/browser/ui/webui/chromeos/login/l10n_util.cc:463: &l10n_util::GetApplicationLocale; On 2014/08/19 18:44:49, tony wrote: > Do you ...
6 years, 4 months ago (2014-08-20 08:46:25 UTC) #5
pneubeck (no reviews)
lgtm https://codereview.chromium.org/486203002/diff/20001/chrome/browser/chromeos/policy/device_local_account_browsertest.cc File chrome/browser/chromeos/policy/device_local_account_browsertest.cc (right): https://codereview.chromium.org/486203002/diff/20001/chrome/browser/chromeos/policy/device_local_account_browsertest.cc#newcode1422 chrome/browser/chromeos/policy/device_local_account_browsertest.cc:1422: EXPECT_EQ(l10n_util::GetLanguage(initial_locale_), On 2014/08/19 17:03:01, bartfab wrote: > On ...
6 years, 4 months ago (2014-08-20 09:03:40 UTC) #6
dzhioev (left Google)
On 2014/08/19 13:01:00, bartfab wrote: > Hi Tony, > > Could you review ui/base/l10n/l10n_util* please? ...
6 years, 4 months ago (2014-08-20 11:52:05 UTC) #7
tony
LGTM, please have a bug for renaming the function after the merge to make it ...
6 years, 4 months ago (2014-08-20 16:45:21 UTC) #8
bartfab (slow)
https://codereview.chromium.org/486203002/diff/20001/chrome/browser/chromeos/policy/device_local_account_browsertest.cc File chrome/browser/chromeos/policy/device_local_account_browsertest.cc (right): https://codereview.chromium.org/486203002/diff/20001/chrome/browser/chromeos/policy/device_local_account_browsertest.cc#newcode1422 chrome/browser/chromeos/policy/device_local_account_browsertest.cc:1422: EXPECT_EQ(l10n_util::GetLanguage(initial_locale_), On 2014/08/20 09:03:40, pneubeck wrote: > On 2014/08/19 ...
6 years, 4 months ago (2014-08-20 17:52:28 UTC) #9
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 4 months ago (2014-08-20 17:52:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/486203002/60001
6 years, 4 months ago (2014-08-20 17:53:37 UTC) #11
bartfab (slow)
On 2014/08/20 16:45:21, tony wrote: > LGTM, please have a bug for renaming the function ...
6 years, 4 months ago (2014-08-20 17:56:28 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel_swarming on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-20 20:44:17 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-20 23:04:09 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/1269)
6 years, 4 months ago (2014-08-20 23:04:10 UTC) #15
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 4 months ago (2014-08-21 09:11:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/486203002/60001
6 years, 4 months ago (2014-08-21 09:12:02 UTC) #17
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 09:49:15 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (60001) as 291033

Powered by Google App Engine
This is Rietveld 408576698