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

Issue 163413004: Add base::TimeDelta::Max(). (Closed)

Created:
6 years, 10 months ago by gavinp
Modified:
6 years, 9 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Add base::TimeDelta::Max(). TimeDelta::Max() is a maximum timedelta, larger than any timedelta you can compare it to. The results of adding it to a time, or another time delta are undefined. R=ajwong@chromium.org,mkwst@chromium.org,jar@chromium.org TBR=jamesr@chomium.org,acolwell@chromium.org,nick@chromium.org BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253502

Patch Set 1 #

Total comments: 2

Patch Set 2 : update call sites #

Patch Set 3 : rebase & fix build #

Total comments: 4

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -23 lines) Patch
M base/time/time.h View 4 chunks +34 lines, -6 lines 0 comments Download
M base/time/time.cc View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M base/time/time_unittest.cc View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
M cc/debug/rasterize_and_record_benchmark.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M cc/debug/rasterize_and_record_benchmark_impl.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/picture_pile.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/picture_pile_impl.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/media/websourcebuffer_impl.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/buffers.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/chunk_demuxer.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_response_headers.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_session.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M sync/sessions/nudge_tracker.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
gavinp
ajwong: PTAL. mkwst, jar: FYI. I'm going to add owners reviewers after one pass by ...
6 years, 10 months ago (2014-02-13 17:50:07 UTC) #1
jar (doing other things)
I didn't mind defining a max... but you seem to be going to a lot ...
6 years, 10 months ago (2014-02-14 23:44:06 UTC) #2
gavinp
mkwst can definitely comment here. The thing from this CL that is most important is ...
6 years, 10 months ago (2014-02-15 17:03:50 UTC) #3
jar (doing other things)
I'm convinced. LGTM https://codereview.chromium.org/163413004/diff/440001/base/time/time.h File base/time/time.h (right): https://codereview.chromium.org/163413004/diff/440001/base/time/time.h#newcode64 base/time/time.h:64: static TimeDelta FromDays(int days); On 2014/02/14 ...
6 years, 10 months ago (2014-02-15 17:12:48 UTC) #4
awong
LGTM
6 years, 10 months ago (2014-02-20 23:21:21 UTC) #5
gavinp
jamesr: TBR cc/* content/* acolwell: TBR media/* nick: TBR sync/*
6 years, 10 months ago (2014-02-26 00:09:39 UTC) #6
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 10 months ago (2014-02-26 00:09:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/163413004/830001
6 years, 10 months ago (2014-02-26 00:34:22 UTC) #8
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 05:31:56 UTC) #9
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 05:41:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/163413004/830001
6 years, 10 months ago (2014-02-26 06:03:37 UTC) #11
commit-bot: I haz the power
Change committed as 253502
6 years, 10 months ago (2014-02-26 17:57:43 UTC) #12
wolenetz
On 2014/02/26 17:57:43, I haz the power (commit-bot) wrote: > Change committed as 253502 It ...
6 years, 10 months ago (2014-02-26 22:58:34 UTC) #13
wolenetz
On 2014/02/26 22:58:34, wolenetz wrote: > On 2014/02/26 17:57:43, I haz the power (commit-bot) wrote: ...
6 years, 10 months ago (2014-02-26 23:25:39 UTC) #14
waffles
A revert of this CL has been created in https://codereview.chromium.org/177023003/ by waffles@chromium.org. The reason for ...
6 years, 10 months ago (2014-02-26 23:45:30 UTC) #15
gavinp
Re-opening, since this was reverted in r253643. It seems that JSON doesn't allow serialization of ...
6 years, 10 months ago (2014-02-27 00:04:43 UTC) #16
gavinp
See https://codereview.chromium.org/177023003/ for the revert CL...
6 years, 10 months ago (2014-02-27 00:19:07 UTC) #17
awong
Please use a different CL for the reland. It gets really confusing otherwise. If it ...
6 years, 10 months ago (2014-02-27 05:17:15 UTC) #18
gavinp
On 2014/02/27 05:17:15, awong wrote: > Please use a different CL for the reland. It ...
6 years, 9 months ago (2014-02-27 14:33:48 UTC) #19
gavinp
6 years, 9 months ago (2014-03-01 00:23:02 UTC) #20
Message was sent while issue was closed.
On 2014/02/27 14:33:48, gavinp wrote:
> On 2014/02/27 05:17:15, awong wrote:
> > Please use a different CL for the reland. It gets really confusing
> > otherwise.  If it gets complex, dumping some info in a bug might also be a
> > good idea.
> > 
> > 
> > On Wed, Feb 26, 2014 at 4:19 PM, <mailto:gavinp@chromium.org> wrote:
> > 
> > > See https://codereview.chromium.org/177023003/ for the revert CL...
> > >
> > > https://codereview.chromium.org/163413004/
> > >
> > 
> > To unsubscribe from this group and stop receiving emails from it, send an
> email
> > to mailto:chromium-reviews+unsubscribe@chromium.org.
> 
> OK, I'll close this CL and land on a separate CL.

The reland CL is https://codereview.chromium.org/183763011/ .

Powered by Google App Engine
This is Rietveld 408576698