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

Issue 1229853004: Base: Make TimeDelta constructors deal with overflow. (Closed)

Created:
5 years, 5 months ago by rvargas (doing something else)
Modified:
5 years, 4 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Base: Make TimeDelta constructors deal with overflow. BUG=466445 TBR=skuhne@chromium.org, enne@chromium.org, jochen@chromium.org, kbr@chromium.org Committed: https://crrev.com/15462e858ebf34721e28a023b0b670c2011183ac Cr-Commit-Position: refs/heads/master@{#339605} CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/0a0885005e65d6ae51c6f0db51200a5de1dfde70 Cr-Commit-Position: refs/heads/master@{#340541}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Add test and remove some comments. #

Patch Set 3 : Remove static initializers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -101 lines) Patch
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M base/time/time.h View 1 5 chunks +18 lines, -22 lines 0 comments Download
M base/time/time.cc View 3 chunks +4 lines, -10 lines 0 comments Download
M base/time/time_unittest.cc View 1 6 chunks +78 lines, -52 lines 0 comments Download
M cc/scheduler/compositor_timing_history.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/sync/sync_stopped_reporter.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gl/gl_surface_glx.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
rvargas (doing something else)
5 years, 5 months ago (2015-07-17 00:02:49 UTC) #2
Nico
lgtm if the reason why this works is because TimeDelta (or Time) has saturating operator+, ...
5 years, 5 months ago (2015-07-17 17:00:24 UTC) #3
rvargas (doing something else)
Thanks Let me know if you want another comment or if you want me to ...
5 years, 5 months ago (2015-07-17 19:18:10 UTC) #4
Nico
(ok to land) https://codereview.chromium.org/1229853004/diff/1/base/time/time.h File base/time/time.h (right): https://codereview.chromium.org/1229853004/diff/1/base/time/time.h#newcode603 base/time/time.h:603: // Special-case max. On 2015/07/17 19:18:10, ...
5 years, 5 months ago (2015-07-17 20:21:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1229853004/20001
5 years, 5 months ago (2015-07-21 00:33:25 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-07-21 03:06:33 UTC) #9
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/15462e858ebf34721e28a023b0b670c2011183ac Cr-Commit-Position: refs/heads/master@{#339605}
5 years, 5 months ago (2015-07-21 03:07:37 UTC) #10
Denis Kuznetsov (DE-MUC)
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1250453004/ by antrim@chromium.org. ...
5 years, 5 months ago (2015-07-21 12:31:48 UTC) #11
Denis Kuznetsov (DE-MUC)
Confirm that reverting this CL removes regression. It seems that there are some TimeDelta static ...
5 years, 5 months ago (2015-07-21 14:18:32 UTC) #12
rvargas (doing something else)
What do you think about patch set 3?
5 years, 5 months ago (2015-07-22 02:39:40 UTC) #13
rvargas (doing something else)
On 2015/07/22 02:39:40, rvargas wrote: > What do you think about patch set 3? Nico: ...
5 years, 5 months ago (2015-07-24 21:57:44 UTC) #14
Nico
lgtm
5 years, 5 months ago (2015-07-24 22:07:04 UTC) #15
rvargas (doing something else)
Thanks. +TBR owners outside of base.
5 years, 5 months ago (2015-07-24 23:10:31 UTC) #17
Ken Russell (switch to Gerrit)
ui/gl/gl_surface_glx.cc lgtm
5 years, 5 months ago (2015-07-25 00:21:53 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1229853004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1229853004/40001
5 years, 4 months ago (2015-07-27 18:27:11 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-07-27 20:09:08 UTC) #21
commit-bot: I haz the power
5 years, 4 months ago (2015-07-27 20:10:14 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0a0885005e65d6ae51c6f0db51200a5de1dfde70
Cr-Commit-Position: refs/heads/master@{#340541}

Powered by Google App Engine
This is Rietveld 408576698