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

Unified Diff: chrome/browser/services/gcm/gcm_profile_service.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: Created 6 years, 2 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
Index: chrome/browser/services/gcm/gcm_profile_service.cc
diff --git a/chrome/browser/services/gcm/gcm_profile_service.cc b/chrome/browser/services/gcm/gcm_profile_service.cc
index bd6ede560a964757f5df296959b44dc7040a55d2..7067a8df6f54347b5779e7c886915f265b0e0768 100644
--- a/chrome/browser/services/gcm/gcm_profile_service.cc
+++ b/chrome/browser/services/gcm/gcm_profile_service.cc
@@ -111,7 +111,6 @@ void GCMProfileService::IdentityObserver::OnActiveAccountLogout() {
std::string GCMProfileService::IdentityObserver::SignedInUserName() const {
return driver_->IsStarted() ? account_id_ : std::string();
}
-
void GCMProfileService::IdentityObserver::StartAccountTracker() {
if (gcm_account_tracker_)
return;
@@ -120,8 +119,8 @@ void GCMProfileService::IdentityObserver::StartAccountTracker() {
new gaia::AccountTracker(identity_provider_.get(),
profile_->GetRequestContext()));
- gcm_account_tracker_.reset(
- new GCMAccountTracker(gaia_account_tracker.Pass(), driver_));
+ gcm_account_tracker_.reset(new GCMAccountTracker(
+ gaia_account_tracker.Pass(), driver_, profile_->GetPrefs()));
gcm_account_tracker_->Start();
}

Powered by Google App Engine
This is Rietveld 408576698