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

Issue 1082323003: timezone match code - consider canonical id as well (Closed)

Created:
5 years, 8 months ago by jungshik at Google
Modified:
5 years, 8 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve the timezone matching GetKnownTimezoneOrNull() is supposed to find a matching timezone entry to an input tz id in the CrOS tz list. When looking for a match, the canonical ids have to be taken into account. Note: This CL started as a speculative fix to bug 466014, but I couldn't verify that it fixes the bug on CrOS. It does fix the bug when I tested 'Chrome with cros=1' on Linux (i.e. stub implementation.) with tz changed on Linux. BUG=466014 TEST=manual: see the bug Committed: https://crrev.com/77e507bdf737ccbf193352ebd09554fea12c2f44 Cr-Commit-Position: refs/heads/master@{#326709}

Patch Set 1 #

Patch Set 2 : logs added for debug #

Patch Set 3 : remove most logs #

Total comments: 4

Patch Set 4 : range for-loop with auto #

Patch Set 5 : unittest #

Total comments: 6

Patch Set 6 : add unittest, update the logic #

Patch Set 7 : format fix #

Patch Set 8 : add const to for-loop variable #

Total comments: 9

Patch Set 9 : review comments addressed #

Total comments: 1

Patch Set 10 : static removed #

Patch Set 11 : update gn build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -13 lines) Patch
M chromeos/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M chromeos/settings/timezone_settings.cc View 1 2 3 4 6 chunks +11 lines, -13 lines 0 comments Download
A chromeos/settings/timezone_settings_helper.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A chromeos/settings/timezone_settings_helper.cc View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A chromeos/settings/timezone_settings_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +104 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
jungshik at Google
PTAL, thanks.
5 years, 8 months ago (2015-04-16 00:30:22 UTC) #2
pneubeck (no reviews)
please consider adding a regression test for this. lgtm (i only checked the documentation of ...
5 years, 8 months ago (2015-04-16 08:48:27 UTC) #3
jungshik at Google
On 2015/04/16 08:48:27, pneubeck wrote: > please consider adding a regression test for this. > ...
5 years, 8 months ago (2015-04-17 11:35:05 UTC) #4
jungshik at Google
https://codereview.chromium.org/1082323003/diff/40001/chromeos/settings/timezone_settings.cc File chromeos/settings/timezone_settings.cc (right): https://codereview.chromium.org/1082323003/diff/40001/chromeos/settings/timezone_settings.cc#newcode379 chromeos/settings/timezone_settings.cc:379: status = U_ZERO_ERROR; On 2015/04/16 08:48:27, pneubeck wrote: > ...
5 years, 8 months ago (2015-04-17 11:35:29 UTC) #5
jungshik at Google
oshima@chromium.org: Can you take a look?
5 years, 8 months ago (2015-04-17 11:36:18 UTC) #7
pneubeck (no reviews)
i think you forgot to upload the unit test file.
5 years, 8 months ago (2015-04-17 11:37:28 UTC) #8
oshima
please upload unittest. https://codereview.chromium.org/1082323003/diff/80001/chromeos/settings/timezone_settings_helper.cc File chromeos/settings/timezone_settings_helper.cc (right): https://codereview.chromium.org/1082323003/diff/80001/chromeos/settings/timezone_settings_helper.cc#newcode22 chromeos/settings/timezone_settings_helper.cc:22: for (const auto entry : timezone_list) ...
5 years, 8 months ago (2015-04-17 14:56:33 UTC) #9
jungshik at Google
Updated ,but forgot to reply. Thanks for taking a look. https://codereview.chromium.org/1082323003/diff/80001/chromeos/settings/timezone_settings_helper.cc File chromeos/settings/timezone_settings_helper.cc (right): https://codereview.chromium.org/1082323003/diff/80001/chromeos/settings/timezone_settings_helper.cc#newcode22 ...
5 years, 8 months ago (2015-04-21 13:14:30 UTC) #10
jungshik at Google
On 2015/04/17 11:37:28, pneubeck wrote: > i think you forgot to upload the unit test ...
5 years, 8 months ago (2015-04-21 13:14:52 UTC) #11
oshima
https://codereview.chromium.org/1082323003/diff/140001/chromeos/settings/timezone_settings_unittest.cc File chromeos/settings/timezone_settings_unittest.cc (right): https://codereview.chromium.org/1082323003/diff/140001/chromeos/settings/timezone_settings_unittest.cc#newcode12 chromeos/settings/timezone_settings_unittest.cc:12: namespace { move this inside chromeos::system https://codereview.chromium.org/1082323003/diff/140001/chromeos/settings/timezone_settings_unittest.cc#newcode14 chromeos/settings/timezone_settings_unittest.cc:14: const ...
5 years, 8 months ago (2015-04-23 18:30:45 UTC) #12
jungshik at Google
thanks for taking a look. Can you take another look? https://codereview.chromium.org/1082323003/diff/140001/chromeos/settings/timezone_settings_unittest.cc File chromeos/settings/timezone_settings_unittest.cc (right): https://codereview.chromium.org/1082323003/diff/140001/chromeos/settings/timezone_settings_unittest.cc#newcode12 ...
5 years, 8 months ago (2015-04-23 19:48:12 UTC) #13
oshima
please remove "static", then lgtm. https://codereview.chromium.org/1082323003/diff/140001/chromeos/settings/timezone_settings_unittest.cc File chromeos/settings/timezone_settings_unittest.cc (right): https://codereview.chromium.org/1082323003/diff/140001/chromeos/settings/timezone_settings_unittest.cc#newcode41 chromeos/settings/timezone_settings_unittest.cc:41: for (auto id : ...
5 years, 8 months ago (2015-04-23 22:01:24 UTC) #14
jungshik at Google
Thanks. Review comments addressed.
5 years, 8 months ago (2015-04-23 22:11:46 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1082323003/180001
5 years, 8 months ago (2015-04-23 22:12:16 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/30586)
5 years, 8 months ago (2015-04-23 22:24:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1082323003/180001
5 years, 8 months ago (2015-04-23 23:31:18 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/30637)
5 years, 8 months ago (2015-04-23 23:41:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1082323003/200001
5 years, 8 months ago (2015-04-24 00:23:29 UTC) #27
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 8 months ago (2015-04-24 01:13:24 UTC) #28
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 01:14:09 UTC) #29
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/77e507bdf737ccbf193352ebd09554fea12c2f44
Cr-Commit-Position: refs/heads/master@{#326709}

Powered by Google App Engine
This is Rietveld 408576698