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

Issue 12096096: Give access to a network time kept in the variation service. (Closed)

Created:
7 years, 10 months ago by MAD
Modified:
7 years, 10 months ago
CC:
chromium-reviews, MAD, Ilya Sherman, jar (doing other things), akalin, tim (not reviewing)
Visibility:
Public.

Description

Give access to a network time kept in the variation service. This is temporary and will eventually be moved to a dedicated network time service. OWNER TBR for simple gyp file changes. TBR=thestig@chromium.org BUG=146090 TEST=NetworkTimeTrackerTest.ProperTimeTracking Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180766

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Addressed CR comments #

Total comments: 12

Patch Set 3 : 2nd round of CR comments, new file and tests. #

Total comments: 14

Patch Set 4 : Added math.h for abs() on non-Win platforms. #

Patch Set 5 : NDebug builds fix. #

Patch Set 6 : abs -> fabs #

Patch Set 7 : Refactoring based on more CR comments. #

Total comments: 6

Patch Set 8 : Final nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -9 lines) Patch
A chrome/browser/metrics/variations/network_time_tracker.h View 1 2 3 4 5 6 7 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/metrics/variations/network_time_tracker.cc View 1 2 3 4 5 6 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/browser/metrics/variations/network_time_tracker_unittest.cc View 1 2 3 4 5 6 7 1 chunk +85 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.h View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 2 5 chunks +28 lines, -9 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
MAD
As discussed, would this be OK with you? Thanks! BYE MAD...
7 years, 10 months ago (2013-01-31 21:18:15 UTC) #1
Ilya Sherman
Not sure if it's useful, but there was a thread related to this on chromium-dev ...
7 years, 10 months ago (2013-01-31 22:15:01 UTC) #2
MAD
Yep, thanks, akalin@ started something and I inspired this code from: http://src.chromium.org/viewvc/chrome/trunk/src/net/tools/get_server_time/get_server_time.cc?view=markup I'll then sync ...
7 years, 10 months ago (2013-01-31 22:44:19 UTC) #3
MAD
Wait, don't look at the code just yet, I noticed I left some test code ...
7 years, 10 months ago (2013-02-01 00:04:15 UTC) #4
MAD
OK, should be good now, let me know what you think... Thanks! BYE MAD
7 years, 10 months ago (2013-02-01 02:25:41 UTC) #5
Alexei Svitkine (slow)
How about making a separate helper class that keeps track of the new variables you're ...
7 years, 10 months ago (2013-02-01 19:38:55 UTC) #6
Alexei Svitkine (slow)
On 2013/02/01 19:38:55, Alexei Svitkine wrote: > How about making a separate helper class that ...
7 years, 10 months ago (2013-02-01 19:40:04 UTC) #7
MAD
Yes, got it, good idea, will do... Thanks! On Fri, Feb 1, 2013 at 2:40 ...
7 years, 10 months ago (2013-02-01 19:44:06 UTC) #8
MAD
Done... How about this now? Thanks! BYE MAD https://codereview.chromium.org/12096096/diff/6002/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/12096096/diff/6002/chrome/browser/metrics/variations/variations_service.cc#newcode281 chrome/browser/metrics/variations/variations_service.cc:281: int ...
7 years, 10 months ago (2013-02-01 22:01:41 UTC) #9
Alexei Svitkine (slow)
Also, please add a simple unit test for the new class. https://codereview.chromium.org/12096096/diff/4005/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): ...
7 years, 10 months ago (2013-02-01 22:18:08 UTC) #10
MAD
Thanks for the feedback... PTAL... BYE MAD https://codereview.chromium.org/12096096/diff/4005/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/12096096/diff/4005/chrome/browser/metrics/variations/variations_service.cc#newcode589 chrome/browser/metrics/variations/variations_service.cc:589: base::Time* network_time, ...
7 years, 10 months ago (2013-02-04 21:07:43 UTC) #11
Alexei Svitkine (slow)
Looking good, just a few more nits and suggestions. https://codereview.chromium.org/12096096/diff/20001/chrome/browser/metrics/variations/network_time_tracker.cc File chrome/browser/metrics/variations/network_time_tracker.cc (right): https://codereview.chromium.org/12096096/diff/20001/chrome/browser/metrics/variations/network_time_tracker.cc#newcode16 chrome/browser/metrics/variations/network_time_tracker.cc:16: ...
7 years, 10 months ago (2013-02-04 21:23:18 UTC) #12
MAD
How about this now? Thanks again! BYE MAD... https://codereview.chromium.org/12096096/diff/20001/chrome/browser/metrics/variations/network_time_tracker.cc File chrome/browser/metrics/variations/network_time_tracker.cc (right): https://codereview.chromium.org/12096096/diff/20001/chrome/browser/metrics/variations/network_time_tracker.cc#newcode16 chrome/browser/metrics/variations/network_time_tracker.cc:16: bool ...
7 years, 10 months ago (2013-02-05 01:05:55 UTC) #13
Alexei Svitkine (slow)
LGTM with some final nits. Since it's not a trivial change, can you make a ...
7 years, 10 months ago (2013-02-05 02:29:07 UTC) #14
MAD
Thanks again! https://codereview.chromium.org/12096096/diff/40001/chrome/browser/metrics/variations/network_time_tracker.h File chrome/browser/metrics/variations/network_time_tracker.h (right): https://codereview.chromium.org/12096096/diff/40001/chrome/browser/metrics/variations/network_time_tracker.h#newcode38 chrome/browser/metrics/variations/network_time_tracker.h:38: // Remember the network time based on ...
7 years, 10 months ago (2013-02-05 15:56:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/12096096/50001
7 years, 10 months ago (2013-02-05 16:02:22 UTC) #16
Lei Zhang
.gyp* changes lgtm
7 years, 10 months ago (2013-02-05 19:42:48 UTC) #17
commit-bot: I haz the power
7 years, 10 months ago (2013-02-05 19:53:15 UTC) #18
Message was sent while issue was closed.
Change committed as 180766

Powered by Google App Engine
This is Rietveld 408576698