Chromium Code Reviews| Index: base/time/time.h |
| diff --git a/base/time/time.h b/base/time/time.h |
| index be0eb20f88a4df500d5dfe289fc0d35fed6acd64..17979f598b779a561554e5bb826e06c8f27677d2 100644 |
| --- a/base/time/time.h |
| +++ b/base/time/time.h |
| @@ -242,6 +242,9 @@ class BASE_EXPORT TimeDelta { |
| return delta_ >= other.delta_; |
| } |
| + // This works around crbug.com/635974 |
| + constexpr TimeDelta(const TimeDelta& other) : delta_(other.delta_) {} |
|
miu
2016/08/11 21:48:56
Since the bug is Windows-specific, please surround
liberato (no reviews please)
2016/08/11 22:10:35
Done.
|
| + |
| private: |
| friend int64_t time_internal::SaturatedAdd(TimeDelta delta, int64_t value); |
| friend int64_t time_internal::SaturatedSub(TimeDelta delta, int64_t value); |