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

Side by Side Diff: chrome/browser/profiles/gaia_info_update_service.cc

Issue 502343002: Add account_id to signin manager notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@isauth
Patch Set: Fix android trybots Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/profiles/gaia_info_update_service.h" 5 #include "chrome/browser/profiles/gaia_info_update_service.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 base::TimeDelta delta; 197 base::TimeDelta delta;
198 if (update_delta < base::TimeDelta() || update_delta > desired_delta) 198 if (update_delta < base::TimeDelta() || update_delta > desired_delta)
199 delta = base::TimeDelta::FromSeconds(kMinUpdateIntervalSeconds); 199 delta = base::TimeDelta::FromSeconds(kMinUpdateIntervalSeconds);
200 else 200 else
201 delta = desired_delta - update_delta; 201 delta = desired_delta - update_delta;
202 202
203 timer_.Start(FROM_HERE, delta, this, &GAIAInfoUpdateService::Update); 203 timer_.Start(FROM_HERE, delta, this, &GAIAInfoUpdateService::Update);
204 } 204 }
205 205
206 void GAIAInfoUpdateService::GoogleSigninSucceeded( 206 void GAIAInfoUpdateService::GoogleSigninSucceeded(
207 const std::string& account_id,
207 const std::string& username, 208 const std::string& username,
208 const std::string& password) { 209 const std::string& password) {
209 OnUsernameChanged(username); 210 OnUsernameChanged(username);
210 } 211 }
211 212
212 void GAIAInfoUpdateService::GoogleSignedOut(const std::string& username) { 213 void GAIAInfoUpdateService::GoogleSignedOut(const std::string& account_id,
214 const std::string& username) {
213 OnUsernameChanged(std::string()); 215 OnUsernameChanged(std::string());
214 } 216 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/gaia_info_update_service.h ('k') | chrome/browser/services/gcm/fake_signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698