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

Issue 7054032: Fix ChromeOS clock menu so that it can show 12-hour clock in all locales. (Closed)

Created:
9 years, 7 months ago by kinaba
Modified:
9 years, 6 months ago
Reviewers:
Yusuke Sato, brettw
CC:
chromium-reviews, davemoore+watch_chromium.org, jshin+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Fix ChromeOS clock menu so that it can show 12-hour clock in all locales. BUG=chromium-os:15183 TEST=Set "OS Language" to "Japanese" and open "System" setting. Click the check box of "Use 24-hour clock". Verify the top-right menu clock toggles (12 <--> 24). The cause of the issue was that, the 12/24h setting is not referred at all when time strings are formatted with AM/PM sign dropped. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87229

Patch Set 1 #

Patch Set 2 : Removed unneccessary #includes. #

Patch Set 3 : Added unittests. #

Total comments: 2

Patch Set 4 : Removed unnecessary use of PlatformTest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -31 lines) Patch
M base/base.gyp View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M base/i18n/time_formatting.h View 1 2 2 chunks +11 lines, -4 lines 0 comments Download
M base/i18n/time_formatting.cc View 3 chunks +28 lines, -3 lines 0 comments Download
A base/i18n/time_formatting_unittest.cc View 1 2 3 1 chunk +167 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/status/clock_menu_button.cc View 1 1 chunk +4 lines, -24 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
kinaba
9 years, 7 months ago (2011-05-26 01:15:40 UTC) #1
Yusuke Sato
LGTM, but you might also have to get lgtm from one of base/ OWNERs: http://src.chromium.org/viewvc/chrome/trunk/src/base/OWNERS?revision=81630&view=markup
9 years, 7 months ago (2011-05-26 06:33:48 UTC) #2
kinaba
I added OWNER base/ (brettw) as a reviewer. Brett, could you take a look? Thanks.
9 years, 7 months ago (2011-05-26 07:44:14 UTC) #3
brettw
It seems like this would be easy to write a unit test for, and some ...
9 years, 7 months ago (2011-05-26 17:12:54 UTC) #4
kinaba
Thanks for your comment. I agree that we should have a test for this part. ...
9 years, 6 months ago (2011-05-29 22:30:19 UTC) #5
kinaba
Added unittests for functions in time_formatting.cc, and fixed one apparently incorrect comment.
9 years, 6 months ago (2011-05-30 08:10:28 UTC) #6
brettw
LGTM, thanks! http://codereview.chromium.org/7054032/diff/5002/base/i18n/time_formatting_unittest.cc File base/i18n/time_formatting_unittest.cc (right): http://codereview.chromium.org/7054032/diff/5002/base/i18n/time_formatting_unittest.cc#newcode29 base/i18n/time_formatting_unittest.cc:29: class TimeFormattingTest : public PlatformTest { I ...
9 years, 6 months ago (2011-05-30 08:34:13 UTC) #7
kinaba
9 years, 6 months ago (2011-05-30 08:43:38 UTC) #8
http://codereview.chromium.org/7054032/diff/5002/base/i18n/time_formatting_un...
File base/i18n/time_formatting_unittest.cc (right):

http://codereview.chromium.org/7054032/diff/5002/base/i18n/time_formatting_un...
base/i18n/time_formatting_unittest.cc:29: class TimeFormattingTest : public
PlatformTest {
On 2011/05/30 08:34:13, brettw wrote:
> I don't think you need this (and you can delete the platform_test.h include).
> Since you're not using TEST_F, I don't think this is even getting used.

Done. Thanks for pointing it out!

Powered by Google App Engine
This is Rietveld 408576698