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

Issue 34623008: Change to calculate the real NTP in TimeTicks. (Closed)

Created:
7 years, 2 months ago by pwestin
Modified:
7 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Change to calculate the real NTP in TimeTicks. Added static method to correlate the TimeTicks to a real date and time; in this case UnixEpoch since that is a commonly known time/date. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232194

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fixed nits and modified PRESUBMIT script #

Patch Set 3 : Re-upload; previus upload failed #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Fixed nits in Time #

Total comments: 4

Patch Set 6 : Re-worked the NTP time handling #

Patch Set 7 : Removed the use of To/FromInternalValue #

Patch Set 8 : Changed to use a LazyInstance instead of a Singleton #

Total comments: 10

Patch Set 9 : Fixed nits and comments #

Patch Set 10 : Merge with TOT #

Patch Set 11 : Fixed flaky test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -59 lines) Patch
M base/time/time.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M base/time/time.cc View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -0 lines 0 comments Download
M media/cast/audio_receiver/audio_receiver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M media/cast/cast_defines.h View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -17 lines 0 comments Download
M media/cast/rtcp/rtcp.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M media/cast/rtcp/rtcp_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +41 lines, -29 lines 0 comments Download
M media/cast/rtp_sender/rtp_packetizer/rtp_packetizer_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -3 lines 0 comments Download
M media/cast/rtp_sender/rtp_sender.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/cast/test/encode_decode_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
pwestin
Yuri please advice on how to get this functionality in to the media code. We ...
7 years, 2 months ago (2013-10-23 16:15:01 UTC) #1
miu
On 2013/10/23 16:15:01, pwestin wrote: > Yuri please advice on how to get this functionality ...
7 years, 2 months ago (2013-10-23 18:05:33 UTC) #2
miu
https://codereview.chromium.org/34623008/diff/1/media/cast/cast_defines.h File media/cast/cast_defines.h (right): https://codereview.chromium.org/34623008/diff/1/media/cast/cast_defines.h#newcode107 media/cast/cast_defines.h:107: int64 time_us = time.ToInternalValue(); IMHO, it's much cleaner to ...
7 years, 2 months ago (2013-10-23 18:24:02 UTC) #3
pwestin
Addressed comments and modified the PRESUBMIT script. https://codereview.chromium.org/34623008/diff/1/media/cast/cast_defines.h File media/cast/cast_defines.h (right): https://codereview.chromium.org/34623008/diff/1/media/cast/cast_defines.h#newcode107 media/cast/cast_defines.h:107: int64 time_us ...
7 years, 2 months ago (2013-10-23 21:07:49 UTC) #4
miu
I was just chatting about this "time problem" with hubbe@. One issue I noticed is ...
7 years, 2 months ago (2013-10-23 21:08:38 UTC) #5
pwestin
See inline answers On 2013/10/23 18:05:33, Yuri wrote: > On 2013/10/23 16:15:01, pwestin wrote: > ...
7 years, 2 months ago (2013-10-23 21:15:16 UTC) #6
pwestin
On 2013/10/23 21:08:38, Yuri wrote: > I was just chatting about this "time problem" with ...
7 years, 2 months ago (2013-10-23 21:19:22 UTC) #7
hubbe
On 2013/10/23 21:19:22, pwestin wrote: > On 2013/10/23 21:08:38, Yuri wrote: > > I was ...
7 years, 2 months ago (2013-10-23 22:40:02 UTC) #8
pwestin
On 2013/10/23 22:40:02, hubbe wrote: > On 2013/10/23 21:19:22, pwestin wrote: > > On 2013/10/23 ...
7 years, 2 months ago (2013-10-23 22:47:50 UTC) #9
pwestin
On 2013/10/23 22:47:50, pwestin wrote: > On 2013/10/23 22:40:02, hubbe wrote: > > On 2013/10/23 ...
7 years, 2 months ago (2013-10-23 23:18:15 UTC) #10
hubbe
On 2013/10/23 23:18:15, pwestin wrote: > On 2013/10/23 22:47:50, pwestin wrote: > > On 2013/10/23 ...
7 years, 2 months ago (2013-10-24 00:00:54 UTC) #11
hubbe
On 2013/10/24 00:00:54, hubbe wrote: > On 2013/10/23 23:18:15, pwestin wrote: > > On 2013/10/23 ...
7 years, 2 months ago (2013-10-24 00:03:30 UTC) #12
pwestin
Please review this version before adding base OWNER
7 years, 2 months ago (2013-10-24 19:42:35 UTC) #13
miu
Now that we have the new TimeTicks::UnixEpoch() function, we shouldn't be adding a new NTP ...
7 years, 2 months ago (2013-10-24 21:48:52 UTC) #14
miu
The code in base/time/... ell-gee-tee-em (with one nit comment). I think you can loop-in a ...
7 years, 2 months ago (2013-10-24 21:49:59 UTC) #15
pwestin
Jim; please review the base/time/ change.
7 years, 2 months ago (2013-10-24 21:53:27 UTC) #16
pwestin
On 2013/10/24 21:48:52, Yuri wrote: > Now that we have the new TimeTicks::UnixEpoch() function, we ...
7 years, 2 months ago (2013-10-24 22:38:33 UTC) #17
pwestin
The issue with these changes is that we loose the possibility to fake our NTP ...
7 years, 2 months ago (2013-10-24 22:39:52 UTC) #18
jar (doing other things)
https://codereview.chromium.org/34623008/diff/350001/base/time/time.cc File base/time/time.cc (right): https://codereview.chromium.org/34623008/diff/350001/base/time/time.cc#newcode194 base/time/time.cc:194: static const TimeTicks ticks_unix_epoch = My guess is that ...
7 years, 2 months ago (2013-10-25 01:13:53 UTC) #19
pwestin
PTAL
7 years, 1 month ago (2013-10-30 00:37:43 UTC) #20
pwestin
PTAL changed to use a LazyInstance
7 years, 1 month ago (2013-10-30 18:54:18 UTC) #21
miu
Sorry for the delay. This looks really good. Almost there, with a few last items... ...
7 years, 1 month ago (2013-10-30 19:33:34 UTC) #22
jar (doing other things)
base LGTM %nits below. https://codereview.chromium.org/34623008/diff/730001/base/time/time.cc File base/time/time.cc (right): https://codereview.chromium.org/34623008/diff/730001/base/time/time.cc#newcode13 base/time/time.cc:13: //#include "base/memory/singleton.h" nit: delete... not ...
7 years, 1 month ago (2013-10-30 20:00:11 UTC) #23
pwestin
PTAL; fixed nits and comments https://codereview.chromium.org/34623008/diff/730001/base/time/time.cc File base/time/time.cc (right): https://codereview.chromium.org/34623008/diff/730001/base/time/time.cc#newcode13 base/time/time.cc:13: //#include "base/memory/singleton.h" On 2013/10/30 ...
7 years, 1 month ago (2013-10-30 23:14:30 UTC) #24
miu
lgtm
7 years, 1 month ago (2013-10-30 23:38:16 UTC) #25
Alpha Left Google
LGTM.
7 years, 1 month ago (2013-10-30 23:49:55 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pwestin@google.com/34623008/800001
7 years, 1 month ago (2013-10-31 00:41:58 UTC) #27
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-10-31 01:48:02 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pwestin@google.com/34623008/1090001
7 years, 1 month ago (2013-10-31 15:22:21 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pwestin@google.com/34623008/1220001
7 years, 1 month ago (2013-10-31 15:26:08 UTC) #30
commit-bot: I haz the power
7 years, 1 month ago (2013-10-31 20:29:48 UTC) #31
Message was sent while issue was closed.
Change committed as 232194

Powered by Google App Engine
This is Rietveld 408576698