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

Issue 834073002: ChromeOS: Implement periodic timezone refresh on geolocation data. (Closed)

Created:
5 years, 11 months ago by Alexander Alekseev
Modified:
5 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, nkostylev+watch_chromium.org, dzhioev+watch_chromium.org, asvitkine+watch_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ChromeOS: Implement periodic timezone refresh on geolocation data. This CL implements automatic timezone refresh on location update. BUG=416494 TEST=manually tested Committed: https://crrev.com/48255f3da019c9728fc22b7007e5ca84b90cd78f Cr-Commit-Position: refs/heads/master@{#313943}

Patch Set 1 #

Patch Set 2 : Fix build. #

Patch Set 3 : Add chromeos/timezone/OWNERS . #

Patch Set 4 : Comment updated. #

Total comments: 55

Patch Set 5 : Update after review. #

Total comments: 14

Patch Set 6 : Update after review. #

Total comments: 4

Patch Set 7 : Update after review. #

Patch Set 8 : Cleanup. #

Total comments: 21

Patch Set 9 : Update after review. #

Total comments: 10

Patch Set 10 : Update after review. #

Total comments: 4

Patch Set 11 : Update after review. #

Patch Set 12 : Switch feature to disabled by default. #

Total comments: 14

Patch Set 13 : Update after review. #

Total comments: 2

Patch Set 14 : Align comment. #

Patch Set 15 : Rebased. #

Patch Set 16 : Fix rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+853 lines, -25 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_platform_part_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_platform_part_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/customization/customization_document.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +30 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/users/chrome_user_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +36 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/net/delay_network_call.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/net/delay_network_call.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/preferences.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +31 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/timezone_util.h View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/timezone_util.cc View 1 2 3 4 2 chunks +52 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +33 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +20 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +13 lines, -0 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -1 line 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
A + chromeos/timezone/OWNERS View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A chromeos/timezone/timezone_resolver.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +89 lines, -0 lines 0 comments Download
A chromeos/timezone/timezone_resolver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +424 lines, -0 lines 0 comments Download
M chromeos/timezone/timezone_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (4 generated)
Alexander Alekseev
sky@ : chrome/browser/browser_process_platform_part_chromeos.* isherman@ : tools/metrics/* stevenjb@ : chrome/browser/ui/webui/options/browser_options_handler.* chrome/browser/resources/options/browser_options* chromeos/timezone/* bauerb@ : chrome/browser/supervised_user/supervised_user_service.cc dpolukhin@ ...
5 years, 11 months ago (2015-01-05 00:58:16 UTC) #2
Bernhard Bauer
I'm looking forward to this feature! :) https://codereview.chromium.org/834073002/diff/60001/chrome/browser/browser_process_platform_part_chromeos.cc File chrome/browser/browser_process_platform_part_chromeos.cc (right): https://codereview.chromium.org/834073002/diff/60001/chrome/browser/browser_process_platform_part_chromeos.cc#newcode31 chrome/browser/browser_process_platform_part_chromeos.cc:31: class DelayNetworkCallWithDelay ...
5 years, 11 months ago (2015-01-05 10:22:33 UTC) #3
stevenjb
https://codereview.chromium.org/834073002/diff/60001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/834073002/diff/60001/chrome/browser/resources/options/browser_options.js#newcode392 chrome/browser/resources/options/browser_options.js:392: cr.isChromeOS) { The entire 'Date and time section' is ...
5 years, 11 months ago (2015-01-05 17:34:22 UTC) #4
Ilya Sherman
actions.xml and histograms.xml lgtm
5 years, 11 months ago (2015-01-06 00:02:54 UTC) #5
Alexander Alekseev
https://codereview.chromium.org/834073002/diff/60001/chrome/browser/browser_process_platform_part_chromeos.cc File chrome/browser/browser_process_platform_part_chromeos.cc (right): https://codereview.chromium.org/834073002/diff/60001/chrome/browser/browser_process_platform_part_chromeos.cc#newcode31 chrome/browser/browser_process_platform_part_chromeos.cc:31: class DelayNetworkCallWithDelay { On 2015/01/05 10:22:32, Bernhard Bauer wrote: ...
5 years, 11 months ago (2015-01-15 18:59:03 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/834073002/diff/60001/chromeos/chromeos.gyp File chromeos/chromeos.gyp (right): https://codereview.chromium.org/834073002/diff/60001/chromeos/chromeos.gyp#newcode423 chromeos/chromeos.gyp:423: 'timezone/timezone_resolver.h', On 2015/01/15 18:59:03, Alexander Alekseev wrote: > On ...
5 years, 11 months ago (2015-01-16 09:25:05 UTC) #7
Bernhard Bauer
https://codereview.chromium.org/834073002/diff/80001/chromeos/timezone/timezone_resolver.cc File chromeos/timezone/timezone_resolver.cc (right): https://codereview.chromium.org/834073002/diff/80001/chromeos/timezone/timezone_resolver.cc#newcode44 chromeos/timezone/timezone_resolver.cc:44: // in seconds. BTW, I just found out there's ...
5 years, 11 months ago (2015-01-16 10:56:12 UTC) #8
Alexander Alekseev
https://codereview.chromium.org/834073002/diff/60001/chromeos/chromeos.gyp File chromeos/chromeos.gyp (right): https://codereview.chromium.org/834073002/diff/60001/chromeos/chromeos.gyp#newcode423 chromeos/chromeos.gyp:423: 'timezone/timezone_resolver.h', On 2015/01/16 09:25:05, Bernhard Bauer wrote: > On ...
5 years, 11 months ago (2015-01-16 20:42:45 UTC) #9
Bernhard Bauer
LGTM, just two suggestions: https://codereview.chromium.org/834073002/diff/100001/chromeos/timezone/timezone_resolver.cc File chromeos/timezone/timezone_resolver.cc (right): https://codereview.chromium.org/834073002/diff/100001/chromeos/timezone/timezone_resolver.cc#newcode68 chromeos/timezone/timezone_resolver.cc:68: public base::SupportsWeakPtr<TimeZoneResolver::TimeZoneResolverImpl> { Can you ...
5 years, 11 months ago (2015-01-19 09:55:54 UTC) #10
Alexander Alekseev
sky@, stejenjb@, dpolukhin@ please review: sky@ : chrome/browser/browser_process_platform_part_chromeos.* stevenjb@ : chrome/browser/ui/webui/options/browser_options_handler.* chrome/browser/resources/options/browser_options* chromeos/timezone/* dpolukhin@ : ...
5 years, 11 months ago (2015-01-20 14:41:45 UTC) #11
Dmitry Polukhin
https://codereview.chromium.org/834073002/diff/140001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc File chrome/browser/chromeos/login/ui/login_display_host_impl.cc (right): https://codereview.chromium.org/834073002/diff/140001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc#newcode1213 chrome/browser/chromeos/login/ui/login_display_host_impl.cc:1213: LoginDisplayHostImpl* display_host_impl = What happens with lifetime of the ...
5 years, 11 months ago (2015-01-20 15:32:29 UTC) #12
sky
https://codereview.chromium.org/834073002/diff/140001/chrome/browser/browser_process_platform_part_chromeos.cc File chrome/browser/browser_process_platform_part_chromeos.cc (right): https://codereview.chromium.org/834073002/diff/140001/chrome/browser/browser_process_platform_part_chromeos.cc#newcode30 chrome/browser/browser_process_platform_part_chromeos.cc:30: // We need DelayNetworkCall() with different order of arguments ...
5 years, 11 months ago (2015-01-20 16:47:30 UTC) #13
stevenjb
https://codereview.chromium.org/834073002/diff/60001/chromeos/timezone/timezone_resolver.cc File chromeos/timezone/timezone_resolver.cc (right): https://codereview.chromium.org/834073002/diff/60001/chromeos/timezone/timezone_resolver.cc#newcode79 chromeos/timezone/timezone_resolver.cc:79: TimeZoneProvider* timezone_provider() { return &timezone_provider_; } On 2015/01/15 18:59:03, ...
5 years, 11 months ago (2015-01-20 18:30:42 UTC) #14
Alexander Alekseev
I've swapped arguments of chromeos::DelayNetworkCall(), added jitter to delay calculation and longer delay on browser ...
5 years, 11 months ago (2015-01-22 18:55:23 UTC) #15
stevenjb
https://codereview.chromium.org/834073002/diff/160001/chromeos/timezone/timezone_resolver.cc File chromeos/timezone/timezone_resolver.cc (right): https://codereview.chromium.org/834073002/diff/160001/chromeos/timezone/timezone_resolver.cc#newcode38 chromeos/timezone/timezone_resolver.cc:38: const double kInitialRefreshIntervalSec = 3; nit: 3.0 https://codereview.chromium.org/834073002/diff/160001/chromeos/timezone/timezone_resolver.cc#newcode41 chromeos/timezone/timezone_resolver.cc:41: ...
5 years, 11 months ago (2015-01-22 19:04:31 UTC) #16
sky
chrome/browser/browser_process_platform_part_chromeos.* LGTM
5 years, 11 months ago (2015-01-22 20:43:20 UTC) #17
Alexander Alekseev
https://codereview.chromium.org/834073002/diff/160001/chromeos/timezone/timezone_resolver.cc File chromeos/timezone/timezone_resolver.cc (right): https://codereview.chromium.org/834073002/diff/160001/chromeos/timezone/timezone_resolver.cc#newcode38 chromeos/timezone/timezone_resolver.cc:38: const double kInitialRefreshIntervalSec = 3; On 2015/01/22 19:04:30, stevenjb ...
5 years, 10 months ago (2015-01-27 19:02:00 UTC) #18
Dmitry Polukhin
https://codereview.chromium.org/834073002/diff/180001/chromeos/timezone/timezone_resolver.h File chromeos/timezone/timezone_resolver.h (right): https://codereview.chromium.org/834073002/diff/180001/chromeos/timezone/timezone_resolver.h#newcode65 chromeos/timezone/timezone_resolver.h:65: net::URLRequestContextGetter* const context_; It looks like it should be ...
5 years, 10 months ago (2015-01-28 12:10:10 UTC) #19
Alexander Alekseev
Dmitry, PTAL. https://codereview.chromium.org/834073002/diff/180001/chromeos/timezone/timezone_resolver.h File chromeos/timezone/timezone_resolver.h (right): https://codereview.chromium.org/834073002/diff/180001/chromeos/timezone/timezone_resolver.h#newcode65 chromeos/timezone/timezone_resolver.h:65: net::URLRequestContextGetter* const context_; On 2015/01/28 12:10:10, Dmitry ...
5 years, 10 months ago (2015-01-28 17:57:55 UTC) #20
Dmitry Polukhin
lgtm
5 years, 10 months ago (2015-01-29 08:57:41 UTC) #21
Alexander Alekseev
stevenjb@, please review.
5 years, 10 months ago (2015-01-29 12:41:09 UTC) #22
stevenjb
https://codereview.chromium.org/834073002/diff/220001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/834073002/diff/220001/chrome/app/chromeos_strings.grdp#newcode5968 chrome/app/chromeos_strings.grdp:5968: If enabled, in chrome://settings new option becomes available, which ...
5 years, 10 months ago (2015-01-29 18:29:21 UTC) #23
Alexander Alekseev
https://codereview.chromium.org/834073002/diff/220001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/834073002/diff/220001/chrome/app/chromeos_strings.grdp#newcode5968 chrome/app/chromeos_strings.grdp:5968: If enabled, in chrome://settings new option becomes available, which ...
5 years, 10 months ago (2015-01-29 19:51:08 UTC) #24
stevenjb
lgtm https://codereview.chromium.org/834073002/diff/240001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/834073002/diff/240001/chrome/browser/resources/options/browser_options.js#newcode1627 chrome/browser/resources/options/browser_options.js:1627: * enterprise policy. False otherwize. nit: indent 'enterprise' ...
5 years, 10 months ago (2015-01-29 20:23:27 UTC) #25
Alexander Alekseev
https://codereview.chromium.org/834073002/diff/240001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/834073002/diff/240001/chrome/browser/resources/options/browser_options.js#newcode1627 chrome/browser/resources/options/browser_options.js:1627: * enterprise policy. False otherwize. On 2015/01/29 20:23:27, stevenjb ...
5 years, 10 months ago (2015-01-30 13:53:45 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/834073002/280001
5 years, 10 months ago (2015-01-30 16:27:38 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/54645)
5 years, 10 months ago (2015-01-30 16:37:22 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/834073002/300001
5 years, 10 months ago (2015-01-30 16:56:55 UTC) #32
commit-bot: I haz the power
Committed patchset #16 (id:300001)
5 years, 10 months ago (2015-01-30 18:12:16 UTC) #33
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 18:13:34 UTC) #34
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/48255f3da019c9728fc22b7007e5ca84b90cd78f
Cr-Commit-Position: refs/heads/master@{#313943}

Powered by Google App Engine
This is Rietveld 408576698