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

Unified Diff: components/gcm_driver/gcm_driver_desktop.cc

Issue 631343002: [GCM] Fetching OAuth2 tokens periodically in account tracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mapper-in-driver
Patch Set: Adding tests and removing pref related code from tests Created 6 years, 1 month 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
Index: components/gcm_driver/gcm_driver_desktop.cc
diff --git a/components/gcm_driver/gcm_driver_desktop.cc b/components/gcm_driver/gcm_driver_desktop.cc
index 6902efbc85e0a91ed49755198fd22a9ac052e9d8..86f2e481ab7273fc5350127a73af8542385383df 100644
--- a/components/gcm_driver/gcm_driver_desktop.cc
+++ b/components/gcm_driver/gcm_driver_desktop.cc
@@ -363,6 +363,7 @@ GCMDriverDesktop::GCMDriverDesktop(
gcm_enabled_(true),
connected_(false),
account_mapper_(new GCMAccountMapper(this)),
+ last_token_fetch_time_(base::Time::Max()), // set to max as a sentinel
Nicolas Zea 2014/11/06 21:43:17 Why Max, vs null?
fgorski 2014/11/07 01:42:13 Max > Now() which means reporting will not be trig
ui_thread_(ui_thread),
io_thread_(io_thread),
weak_ptr_factory_(this) {

Powered by Google App Engine
This is Rietveld 408576698