| Index: sync/sessions/nudge_tracker.cc
|
| diff --git a/sync/sessions/nudge_tracker.cc b/sync/sessions/nudge_tracker.cc
|
| index 22a9fe088bd52099fee065ae2dbf02ab29a3c725..5b599b8bc7f483504308b4d2583c149542fdad13 100644
|
| --- a/sync/sessions/nudge_tracker.cc
|
| +++ b/sync/sessions/nudge_tracker.cc
|
| @@ -174,11 +174,9 @@ bool NudgeTracker::IsTypeThrottled(ModelType type) const {
|
| base::TimeDelta NudgeTracker::GetTimeUntilNextUnthrottle(
|
| base::TimeTicks now) const {
|
| DCHECK(IsAnyTypeThrottled()) << "This function requires a pending unthrottle";
|
| - const base::TimeDelta kMaxTimeDelta =
|
| - base::TimeDelta::FromInternalValue(kint64max);
|
|
|
| // Return min of GetTimeUntilUnthrottle() values for all IsThrottled() types.
|
| - base::TimeDelta time_until_next_unthrottle = kMaxTimeDelta;
|
| + base::TimeDelta time_until_next_unthrottle = base::TimeDelta::Max();
|
| for (TypeTrackerMap::const_iterator it = type_trackers_.begin();
|
| it != type_trackers_.end(); ++it) {
|
| if (it->second.IsThrottled()) {
|
| @@ -187,7 +185,7 @@ base::TimeDelta NudgeTracker::GetTimeUntilNextUnthrottle(
|
| it->second.GetTimeUntilUnthrottle(now));
|
| }
|
| }
|
| - DCHECK(kMaxTimeDelta != time_until_next_unthrottle);
|
| + DCHECK(!time_until_next_unthrottle.is_max());
|
|
|
| return time_until_next_unthrottle;
|
| }
|
|
|