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

Unified Diff: chrome/service/cloud_print/cloud_print_auth.cc

Issue 9187023: Convert use of int ms to TimeDelta in files owned by ajwong. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove static class instance initialization. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/service/cloud_print/cloud_print_proxy_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_auth.cc
diff --git a/chrome/service/cloud_print/cloud_print_auth.cc b/chrome/service/cloud_print/cloud_print_auth.cc
index ac757f67e23756aff494e5accd59a3ddce452a7c..a01dca3d2bec109151db7e24cceba3d7007c5caa 100644
--- a/chrome/service/cloud_print/cloud_print_auth.cc
+++ b/chrome/service/cloud_print/cloud_print_auth.cc
@@ -137,8 +137,8 @@ void CloudPrintAuth::OnRefreshTokenResponse(const std::string& access_token,
// Schedule a task to refresh the access token again when it is about to
// expire.
DCHECK(expires_in_seconds > kTokenRefreshGracePeriodSecs);
- int64 refresh_delay =
- (expires_in_seconds - kTokenRefreshGracePeriodSecs)*1000;
+ base::TimeDelta refresh_delay = base::TimeDelta::FromSeconds(
+ expires_in_seconds - kTokenRefreshGracePeriodSecs);
MessageLoop::current()->PostDelayedTask(
FROM_HERE, base::Bind(&CloudPrintAuth::RefreshAccessToken, this),
refresh_delay);
« no previous file with comments | « no previous file | chrome/service/cloud_print/cloud_print_proxy_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698