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

Issue 26315008: Add a timezone utility file to base/. (Closed)

Created:
7 years, 2 months ago by Evan Stade
Modified:
7 years, 1 month ago
CC:
chromium-reviews, benquan, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Add a timezone utility file to base/. Currently there's just one function exported, which checks the system timezone and returns a 2-character ASCII country code for it. BUG=303368 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235823

Patch Set 1 #

Patch Set 2 : sync #

Patch Set 3 : . #

Patch Set 4 : add comment #

Patch Set 5 : retry upload #

Patch Set 6 : add links, test #

Patch Set 7 : git add test file #

Patch Set 8 : remove debugging code #

Patch Set 9 : live dangerously #

Total comments: 2

Patch Set 10 : toUTF8String #

Patch Set 11 : sync #

Patch Set 12 : android fix? #

Patch Set 13 : disable test on android #

Total comments: 2

Patch Set 14 : rename function #

Patch Set 15 : . #

Patch Set 16 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+657 lines, -0 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
A base/i18n/timezone.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +21 lines, -0 lines 0 comments Download
A base/i18n/timezone.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +608 lines, -0 lines 0 comments Download
A base/i18n/timezone_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
Evan Stade
Let me know your thoughts on the location of this functionality. If you have no ...
7 years, 2 months ago (2013-10-22 00:42:41 UTC) #1
brettw
Don't the country names need to be localized? I would not expect to see "Europe/Prague" ...
7 years, 2 months ago (2013-10-22 17:27:41 UTC) #2
Evan Stade
On 2013/10/22 17:27:41, brettw wrote: > Don't the country names need to be localized? I ...
7 years, 2 months ago (2013-10-22 17:36:07 UTC) #3
brettw
Oh, I see. Seems OK to add this kind of thing.
7 years, 2 months ago (2013-10-22 21:09:25 UTC) #4
Evan Stade
OK, ready for review.
7 years, 2 months ago (2013-10-22 21:51:57 UTC) #5
Evan Stade
On 2013/10/22 21:51:57, Evan Stade wrote: > OK, ready for review. ping Brett.
7 years, 2 months ago (2013-10-24 12:22:34 UTC) #6
Evan Stade
Jungshik, could you review please?
7 years, 1 month ago (2013-10-25 19:33:35 UTC) #7
jungshik at Google
On 2013/10/25 19:33:35, Evan Stade wrote: > Jungshik, could you review please? Sorry for the ...
7 years, 1 month ago (2013-10-28 17:20:49 UTC) #8
Evan Stade
On 2013/10/28 17:20:49, Jungshik Shin wrote: > On 2013/10/25 19:33:35, Evan Stade wrote: > > ...
7 years, 1 month ago (2013-10-28 18:27:29 UTC) #9
jungshik at Google
On 2013/10/28 18:27:29, Evan Stade wrote: > On 2013/10/28 17:20:49, Jungshik Shin wrote: > > ...
7 years, 1 month ago (2013-10-28 20:56:06 UTC) #10
jungshik at Google
https://codereview.chromium.org/26315008/diff/703001/base/i18n/timezone.cc File base/i18n/timezone.cc (right): https://codereview.chromium.org/26315008/diff/703001/base/i18n/timezone.cc#newcode603 base/i18n/timezone.cc:603: string16 olson_code(id.getBuffer(), id.length()); BTW, you can use UnicodeString::toUTF8String. ( ...
7 years, 1 month ago (2013-10-28 21:01:18 UTC) #11
Evan Stade
https://codereview.chromium.org/26315008/diff/703001/base/i18n/timezone.cc File base/i18n/timezone.cc (right): https://codereview.chromium.org/26315008/diff/703001/base/i18n/timezone.cc#newcode603 base/i18n/timezone.cc:603: string16 olson_code(id.getBuffer(), id.length()); On 2013/10/28 21:01:19, Jungshik Shin wrote: ...
7 years, 1 month ago (2013-10-28 22:08:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/883001
7 years, 1 month ago (2013-10-28 22:11:38 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=32978
7 years, 1 month ago (2013-10-28 23:05:08 UTC) #14
Evan Stade
+thakis for base.gyp change
7 years, 1 month ago (2013-11-01 19:22:10 UTC) #15
Nico
base.gyp lgtm
7 years, 1 month ago (2013-11-01 23:43:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/883001
7 years, 1 month ago (2013-11-04 21:34:43 UTC) #17
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-04 22:44:40 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/1143001
7 years, 1 month ago (2013-11-05 20:22:21 UTC) #19
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=24955
7 years, 1 month ago (2013-11-05 21:22:20 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/1143001
7 years, 1 month ago (2013-11-05 21:47:38 UTC) #21
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-05 22:37:16 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/1433001
7 years, 1 month ago (2013-11-07 17:02:27 UTC) #23
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 1 month ago (2013-11-08 00:50:22 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/1743001
7 years, 1 month ago (2013-11-13 00:32:58 UTC) #25
Ilya Sherman
https://chromiumcodereview.appspot.com/26315008/diff/1743001/base/i18n/timezone.h File base/i18n/timezone.h (right): https://chromiumcodereview.appspot.com/26315008/diff/1743001/base/i18n/timezone.h#newcode17 base/i18n/timezone.h:17: BASE_I18N_EXPORT std::string CountryForCurrentTimezone(); nit: IMO "CountryCodeForCurrentTimezone()" would be a ...
7 years, 1 month ago (2013-11-13 00:54:20 UTC) #26
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-13 01:19:41 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/1183003
7 years, 1 month ago (2013-11-14 23:39:04 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/1183003
7 years, 1 month ago (2013-11-15 01:08:24 UTC) #29
Evan Stade
https://codereview.chromium.org/26315008/diff/1743001/base/i18n/timezone.h File base/i18n/timezone.h (right): https://codereview.chromium.org/26315008/diff/1743001/base/i18n/timezone.h#newcode17 base/i18n/timezone.h:17: BASE_I18N_EXPORT std::string CountryForCurrentTimezone(); On 2013/11/13 00:54:21, Ilya Sherman wrote: ...
7 years, 1 month ago (2013-11-15 01:18:26 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/1183003
7 years, 1 month ago (2013-11-15 03:46:15 UTC) #31
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=190571
7 years, 1 month ago (2013-11-15 07:34:11 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/1183003
7 years, 1 month ago (2013-11-15 07:38:03 UTC) #33
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) nacl_integration http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=224973
7 years, 1 month ago (2013-11-15 09:37:52 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/2423001
7 years, 1 month ago (2013-11-15 22:51:52 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/2423001
7 years, 1 month ago (2013-11-16 00:13:41 UTC) #36
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=189347
7 years, 1 month ago (2013-11-16 03:04:55 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/26315008/2783001
7 years, 1 month ago (2013-11-18 19:14:12 UTC) #38
commit-bot: I haz the power
7 years, 1 month ago (2013-11-18 21:52:18 UTC) #39
Message was sent while issue was closed.
Change committed as 235823

Powered by Google App Engine
This is Rietveld 408576698