Remove useless notifications if platform timezone is unchanged
On windows, the Timezone modifications is detected by listening to WM_TIMECHANGE event but that event is emitted for any time property change. We are observing in slow-reports that on power suspend/resume that event is always sent (one or more time) which is triggering multiple Timezone notification to be sent to observers (a.k.a renderers). The proposed solution is to filter the time change by ensuring the platform specific timezone has changed. We do not rely on ICU timezone API since it's heavy to be added on the startup path. The goal is to detect platform changes to filter out the time change events. R=gab@chromium.org,fdoray@chromium.org,mark@chromium.org Bug: 1074036 Change-Id: I296e0735a04d6258a659688a987c58399d4c7ab7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2583012 Commit-Queue: Etienne Bergeron <etienneb@chromium.org> Reviewed-by:Mark Mentovai <mark@chromium.org> Reviewed-by:
François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#841366}
Showing
Please register or sign in to comment