OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |