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

Issue 397723002: Extract l10n-related parts of NetworkScreenHandler to a helper file (Closed)

Created:
6 years, 5 months ago by bartfab (slow)
Modified:
6 years, 5 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, jshin+watch_chromium.org, nkostylev+watch_chromium.org, Alexander Alekseev
Project:
chromium
Visibility:
Public.

Description

Extract l10n-related parts of NetworkScreenHandler to a helper file This CL extracts the GetLanguageList(), GetAcceptLanguageList and GetLoginKeyboardLayouts() methods from NetworkScreenHandler to a helper file. The methods will be reused by SigninScreenHandler to implement a language and keyboard layout picker for public session pods. BUG=214904, 241790 TEST=Updated and extended unit tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284683

Patch Set 1 #

Patch Set 2 : Rename a few method arguments for consistency. #

Total comments: 2

Patch Set 3 : Moved more code to l10n_util. #

Patch Set 4 : Removed unnecessary namespace specification. #

Patch Set 5 : Fix compliation with clang. #

Patch Set 6 : Derive list of input methods from actual locale, not requested locale. This is how it used to work … #

Unified diffs Side-by-side diffs Delta from patch set Stats (+795 lines, -616 lines) Patch
M chrome/browser/chromeos/customization_document.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/login/l10n_util.h View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/login/l10n_util.cc View 1 2 1 chunk +407 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/login/l10n_util_test_util.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/login/l10n_util_test_util.cc View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/login/l10n_util_unittest.cc View 1 2 3 4 1 chunk +191 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/network_screen_handler.h View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/network_screen_handler.cc View 1 2 3 4 5 6 chunks +13 lines, -156 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.h View 1 2 4 chunks +5 lines, -39 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc View 1 2 6 chunks +11 lines, -261 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/cros_language_options_handler_unittest.cc View 1 2 3 4 2 chunks +19 lines, -148 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
bartfab (slow)
Hi Nikita, Could you take a look please?
6 years, 5 months ago (2014-07-15 18:03:11 UTC) #1
Alexander Alekseev
On 2014/07/15 18:03:11, bartfab wrote: > Hi Nikita, > > Could you take a look ...
6 years, 5 months ago (2014-07-16 19:12:05 UTC) #2
Nikita (slow)
https://codereview.chromium.org/397723002/diff/20001/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.h File chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.h (right): https://codereview.chromium.org/397723002/diff/20001/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.h#newcode71 chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.h:71: static base::ListValue* GetUILanguageList( How about moving GetUILanguageList/GetLanguageListInternal out of ...
6 years, 5 months ago (2014-07-17 06:14:54 UTC) #3
bartfab (slow)
https://codereview.chromium.org/397723002/diff/20001/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.h File chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.h (right): https://codereview.chromium.org/397723002/diff/20001/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.h#newcode71 chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.h:71: static base::ListValue* GetUILanguageList( On 2014/07/17 06:14:54, Nikita Kostylev wrote: ...
6 years, 5 months ago (2014-07-21 14:28:30 UTC) #4
Nikita (slow)
lgtm, thanks Alexander will take a closer look.
6 years, 5 months ago (2014-07-21 15:24:52 UTC) #5
bartfab (slow)
6 years, 5 months ago (2014-07-21 18:42:23 UTC) #6
Alexander Alekseev
lgtm
6 years, 5 months ago (2014-07-21 19:37:41 UTC) #7
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 5 months ago (2014-07-21 19:39:58 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/397723002/60001
6 years, 5 months ago (2014-07-21 19:42:14 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-21 23:47:00 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-22 00:00:50 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_clang_dbg/builds/31277)
6 years, 5 months ago (2014-07-22 00:00:51 UTC) #12
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 5 months ago (2014-07-22 10:04:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/397723002/80001
6 years, 5 months ago (2014-07-22 10:06:01 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-22 11:48:57 UTC) #15
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 5 months ago (2014-07-22 11:59:49 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/397723002/100001
6 years, 5 months ago (2014-07-22 12:01:01 UTC) #17
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 15:53:38 UTC) #18
Message was sent while issue was closed.
Change committed as 284683

Powered by Google App Engine
This is Rietveld 408576698