| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/sync/signin_manager.h" | 5 #include "chrome/browser/sync/signin_manager.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "chrome/browser/net/gaia/token_service.h" | 9 #include "chrome/browser/net/gaia/token_service.h" |
| 10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 269 |
| 270 // If a GAIA service token has become available, use it to pre-login the | 270 // If a GAIA service token has become available, use it to pre-login the |
| 271 // user to other services that depend on GAIA credentials. | 271 // user to other services that depend on GAIA credentials. |
| 272 if (tok_details->service() == GaiaConstants::kGaiaService) { | 272 if (tok_details->service() == GaiaConstants::kGaiaService) { |
| 273 if (client_login_.get() == NULL) { | 273 if (client_login_.get() == NULL) { |
| 274 client_login_.reset(new GaiaAuthFetcher(this, | 274 client_login_.reset(new GaiaAuthFetcher(this, |
| 275 GaiaConstants::kChromeSource, | 275 GaiaConstants::kChromeSource, |
| 276 profile_->GetRequestContext())); | 276 profile_->GetRequestContext())); |
| 277 } | 277 } |
| 278 | 278 |
| 279 client_login_->StartTokenAuth(tok_details->token()); | 279 client_login_->StartMergeSession(tok_details->token()); |
| 280 | 280 |
| 281 // We only want to do this once per sign-in. | 281 // We only want to do this once per sign-in. |
| 282 CleanupNotificationRegistration(); | 282 CleanupNotificationRegistration(); |
| 283 } | 283 } |
| 284 #endif | 284 #endif |
| 285 } | 285 } |
| OLD | NEW |