| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromeos/login/oauth2_login_manager.h" | 5 #include "chrome/browser/chromeos/login/oauth2_login_manager.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/chromeos/login/user_manager.h" | 9 #include "chrome/browser/chromeos/login/user_manager.h" |
| 10 #include "chrome/browser/policy/browser_policy_connector.h" | 10 #include "chrome/browser/policy/browser_policy_connector.h" |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 } | 236 } |
| 237 | 237 |
| 238 void OAuth2LoginManager::StartTokenService( | 238 void OAuth2LoginManager::StartTokenService( |
| 239 const GaiaAuthConsumer::ClientLoginResult& gaia_credentials) { | 239 const GaiaAuthConsumer::ClientLoginResult& gaia_credentials) { |
| 240 TokenService* token_service = SetupTokenService(); | 240 TokenService* token_service = SetupTokenService(); |
| 241 token_service->UpdateCredentials(gaia_credentials); | 241 token_service->UpdateCredentials(gaia_credentials); |
| 242 CompleteAuthentication(); | 242 CompleteAuthentication(); |
| 243 } | 243 } |
| 244 | 244 |
| 245 } // namespace chromeos | 245 } // namespace chromeos |
| OLD | NEW |