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

Issue 697203006: Update the ICU's default timezone in render (Closed)

Created:
6 years, 1 month ago by jungshik at Google
Modified:
5 years, 7 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update the ICU's default timezone in browser/renderer When a timezone is changed by a user at the OS level, the ICU's default timezone has to be updated in both browser and renderer processes. This CL propagates the new timezone id to renderers as well as updating it in the browser process. A v8-side change is still necessary to get Intl.DateTimeFormat to work in a new timezone. BUG=406382, 379595 TEST=Manual test (browser process). 1. Go to history page 2. Change the OS tz 3. Reload the history page and see if the timestamp is in a new timezone. Committed: https://crrev.com/0a9aa635da90c5a1674cb5cb9d26394ac473a923 Cr-Commit-Position: refs/heads/master@{#327529}

Patch Set 1 #

Patch Set 2 : make it cros only for now #

Patch Set 3 : use ICU's new host tz detection API #

Patch Set 4 : add logs #

Total comments: 5

Patch Set 5 : update tz only once in browser #

Patch Set 6 : add a check to render for just testing #

Patch Set 7 : revert the last test change #

Patch Set 8 : variable name change #

Patch Set 9 : add comment about linux tz monitor #

Total comments: 2

Patch Set 10 : init ICU default tz on Linux #

Patch Set 11 : init tz only when icu data load succ. #

Total comments: 2

Patch Set 12 : VLOG(1) instead of 0 #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -15 lines) Patch
M base/i18n/icu_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +19 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/time_zone_monitor.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +25 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/browser/render_process_host.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/mock_render_process_host.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 29 (7 generated)
jungshik at Google
This does not work yet.
5 years, 8 months ago (2015-04-03 19:36:16 UTC) #1
jungshik at Google
Mark and Jochen, can you take a look? This does not solve the bug (v8's ...
5 years, 8 months ago (2015-04-10 00:23:44 UTC) #3
jochen (gone - plz use gerrit)
https://codereview.chromium.org/697203006/diff/60001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/697203006/diff/60001/content/renderer/render_thread_impl.cc#newcode1705 content/renderer/render_thread_impl.cc:1705: icu::TimeZone::adoptDefault(defaultZone); On 2015/04/10 at 00:23:44, Jungshik at google wrote: ...
5 years, 8 months ago (2015-04-10 12:17:25 UTC) #4
Mark Mentovai
https://codereview.chromium.org/697203006/diff/60001/content/browser/time_zone_monitor.cc File content/browser/time_zone_monitor.cc (right): https://codereview.chromium.org/697203006/diff/60001/content/browser/time_zone_monitor.cc#newcode36 content/browser/time_zone_monitor.cc:36: VLOG(0) << "timezone reset to " << zone_id_str; Jungshik ...
5 years, 8 months ago (2015-04-10 13:19:00 UTC) #5
jungshik at Google
On 2015/04/10 13:19:00, Mark Mentovai wrote: > https://codereview.chromium.org/697203006/diff/60001/content/browser/time_zone_monitor.cc > File content/browser/time_zone_monitor.cc (right): > > https://codereview.chromium.org/697203006/diff/60001/content/browser/time_zone_monitor.cc#newcode36 ...
5 years, 8 months ago (2015-04-10 18:47:36 UTC) #6
Mark Mentovai
Multiple messages didn’t seem like a major problem at the time, since there wasn’t much ...
5 years, 8 months ago (2015-04-10 18:49:52 UTC) #7
jungshik at Google
On 2015/04/10 12:17:25, jochen wrote: > https://codereview.chromium.org/697203006/diff/60001/content/renderer/render_thread_impl.cc > File content/renderer/render_thread_impl.cc (right): > > https://codereview.chromium.org/697203006/diff/60001/content/renderer/render_thread_impl.cc#newcode1705 > ...
5 years, 8 months ago (2015-04-10 18:51:55 UTC) #8
Mark Mentovai
I’d rather avoid any locking if possible.
5 years, 8 months ago (2015-04-10 19:00:16 UTC) #9
jochen (gone - plz use gerrit)
On 2015/04/10 at 18:51:55, jshin wrote: > On 2015/04/10 12:17:25, jochen wrote: > > https://codereview.chromium.org/697203006/diff/60001/content/renderer/render_thread_impl.cc ...
5 years, 8 months ago (2015-04-13 12:59:41 UTC) #10
jungshik at Google
https://codereview.chromium.org/697203006/diff/60001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/697203006/diff/60001/content/renderer/render_thread_impl.cc#newcode1705 content/renderer/render_thread_impl.cc:1705: icu::TimeZone::adoptDefault(defaultZone); On 2015/04/10 12:17:24, jochen wrote: > On 2015/04/10 ...
5 years, 8 months ago (2015-04-24 22:40:54 UTC) #11
jungshik at Google
Can you take another look? Thanks. https://codereview.chromium.org/697203006/diff/160001/content/browser/time_zone_monitor.cc File content/browser/time_zone_monitor.cc (right): https://codereview.chromium.org/697203006/diff/160001/content/browser/time_zone_monitor.cc#newcode35 content/browser/time_zone_monitor.cc:35: if (*current_zone == ...
5 years, 8 months ago (2015-04-24 22:46:58 UTC) #12
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/697203006/diff/200001/content/browser/time_zone_monitor.cc File content/browser/time_zone_monitor.cc (right): https://codereview.chromium.org/697203006/diff/200001/content/browser/time_zone_monitor.cc#newcode36 content/browser/time_zone_monitor.cc:36: VLOG(0) << "timezone already updated"; can we make ...
5 years, 8 months ago (2015-04-27 19:21:59 UTC) #13
jungshik at Google
On 2015/04/27 19:21:59, jochen wrote: > lgtm > > https://codereview.chromium.org/697203006/diff/200001/content/browser/time_zone_monitor.cc > File content/browser/time_zone_monitor.cc (right): > ...
5 years, 8 months ago (2015-04-27 22:14:40 UTC) #14
Mark Mentovai
LGTM
5 years, 7 months ago (2015-04-28 12:46:57 UTC) #15
jungshik at Google
tsepez, can you owner-review/approve a change in IPC message? Thanks. Thank you, Mark and Jochen ...
5 years, 7 months ago (2015-04-28 19:48:14 UTC) #16
jungshik at Google
tsepez, can you owner-review/approve a change in IPC message? Thanks.
5 years, 7 months ago (2015-04-28 19:49:44 UTC) #18
Tom Sepez
Messages LGTM.
5 years, 7 months ago (2015-04-28 19:53:57 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/697203006/220001
5 years, 7 months ago (2015-04-28 20:07:08 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/19483) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 7 months ago (2015-04-28 20:10:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/697203006/240001
5 years, 7 months ago (2015-04-29 17:03:16 UTC) #27
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 7 months ago (2015-04-29 18:35:49 UTC) #28
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 18:36:48 UTC) #29
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/0a9aa635da90c5a1674cb5cb9d26394ac473a923
Cr-Commit-Position: refs/heads/master@{#327529}

Powered by Google App Engine
This is Rietveld 408576698