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

Issue 2366943003: Create NetworkTimeTracker on startup for users in Finch experiment (Closed)

Created:
4 years, 2 months ago by estark
Modified:
4 years, 2 months ago
Reviewers:
Nico, Nicolas Zea, mab
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create NetworkTimeTracker on startup for users in Finch experiment On Canary/Dev, we are experimenting with a secure network time service. The NetworkTimeTracker queries the time service to receive a secure timestamp, and then maintains an offset from that time to calculate the current time, only re-querying when it has lost sync (due to a suspend/resume cycle, for example). We are using the secure timestamp to make SSL errors more actionable when they are caused by bad client clocks. The NetworkTimeTracker makes its first query when it is first created, and the NetworkTimeTracker is created when it is first accessed (which is not necessarily on startup). Data from UMA, however, shows that the first query happens too late, and that many SSL errors occur before the first query. To make the secure time queries more useful for SSL errors (which may happen very soon after startup -- for example if the user immediately navigates to https://google.com, or tabs reload upon startup), this CL ensures that the NetworkTimeTracker is created on startup (only for users who are in the Finch trial). BUG=589700 Committed: https://crrev.com/4f480f4f6f1596f54d6de2c149fafbd72ed33030 Cr-Commit-Position: refs/heads/master@{#421842}

Patch Set 1 #

Patch Set 2 : build fix #

Patch Set 3 : move NTT init to PreMainMessageLoop #

Patch Set 4 : fix base::Feature declaration #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -5 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 1 chunk +7 lines, -0 lines 6 comments Download
M components/network_time/network_time_tracker.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M components/network_time/network_time_tracker.cc View 1 2 3 3 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 35 (20 generated)
estark
mab, do you think this is reasonable?
4 years, 2 months ago (2016-09-24 06:33:11 UTC) #4
mab
lgtm seems legit https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc#newcode1075 chrome/browser/browser_process_impl.cc:1075: system_request_context())); Note that the network_time_tracker() getter ...
4 years, 2 months ago (2016-09-26 21:45:09 UTC) #19
mab
lgtm seems legit
4 years, 2 months ago (2016-09-26 21:45:11 UTC) #20
estark
+thakis for chrome/browser/browser_process_impl.cc +zea for components/network_time I tried to include all the context for this ...
4 years, 2 months ago (2016-09-26 21:55:40 UTC) #22
Nico
https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc#newcode1072 chrome/browser/browser_process_impl.cc:1072: network_time_tracker_.reset(new network_time::NetworkTimeTracker( Does this do any amount of real ...
4 years, 2 months ago (2016-09-27 15:51:24 UTC) #23
Nicolas Zea
network_time lgtm
4 years, 2 months ago (2016-09-27 17:17:06 UTC) #24
estark
https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc#newcode1072 chrome/browser/browser_process_impl.cc:1072: network_time_tracker_.reset(new network_time::NetworkTimeTracker( On 2016/09/27 15:51:24, Nico (mostly away until ...
4 years, 2 months ago (2016-09-27 18:56:24 UTC) #25
Nico
https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc#newcode1072 chrome/browser/browser_process_impl.cc:1072: network_time_tracker_.reset(new network_time::NetworkTimeTracker( On 2016/09/27 18:56:24, estark wrote: > On ...
4 years, 2 months ago (2016-09-27 19:07:23 UTC) #26
estark
https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc#newcode1072 chrome/browser/browser_process_impl.cc:1072: network_time_tracker_.reset(new network_time::NetworkTimeTracker( On 2016/09/27 19:07:23, Nico (mostly away until ...
4 years, 2 months ago (2016-09-27 19:37:44 UTC) #27
Nico
On 2016/09/27 19:37:44, estark wrote: > https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc > File chrome/browser/browser_process_impl.cc (right): > > https://codereview.chromium.org/2366943003/diff/60001/chrome/browser/browser_process_impl.cc#newcode1072 > ...
4 years, 2 months ago (2016-09-27 20:12:22 UTC) #28
estark
On 2016/09/27 20:12:22, Nico (mostly away until Oct 3) wrote: > On 2016/09/27 19:37:44, estark ...
4 years, 2 months ago (2016-09-28 05:04:23 UTC) #29
estark
I'm going to go ahead and land this to see how it affects our data ...
4 years, 2 months ago (2016-09-29 15:44:11 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2366943003/60001
4 years, 2 months ago (2016-09-29 15:59:58 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-29 16:41:14 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 16:52:38 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4f480f4f6f1596f54d6de2c149fafbd72ed33030
Cr-Commit-Position: refs/heads/master@{#421842}

Powered by Google App Engine
This is Rietveld 408576698