From 743ace4213ae3ea93355dff8b57ef33287b32220 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Wed, 17 Jun 2009 17:23:51 +0000 Subject: Consistently use int64 for integers holding number of milliseconds. This applies only to things which use TimeDelta::InMilliseconds, because it returns int64. Before this patch callers static_casted that to int, and after this patch they use the returned value as int64. Review URL: http://codereview.chromium.org/126279 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18626 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/net/url_fetcher_protect.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/net/url_fetcher_protect.cc') diff --git a/chrome/browser/net/url_fetcher_protect.cc b/chrome/browser/net/url_fetcher_protect.cc index 22292ab..8798b5a 100644 --- a/chrome/browser/net/url_fetcher_protect.cc +++ b/chrome/browser/net/url_fetcher_protect.cc @@ -52,7 +52,7 @@ URLFetcherProtectEntry::URLFetcherProtectEntry(int sliding_window_period, ResetBackoff(); } -int URLFetcherProtectEntry::UpdateBackoff(EventType event_type) { +int64 URLFetcherProtectEntry::UpdateBackoff(EventType event_type) { // request may be sent in different threads AutoLock lock(lock_); @@ -71,7 +71,7 @@ int URLFetcherProtectEntry::UpdateBackoff(EventType event_type) { NOTREACHED(); } - int wait = static_cast(t.InMilliseconds()); + int64 wait = t.InMilliseconds(); DCHECK(wait >= 0); return wait; } -- cgit v1.1