| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 323 |
| 324 // If a GAIA service token has become available, use it to pre-login the | 324 // If a GAIA service token has become available, use it to pre-login the |
| 325 // user to other services that depend on GAIA credentials. | 325 // user to other services that depend on GAIA credentials. |
| 326 if (tok_details->service() == GaiaConstants::kGaiaService) { | 326 if (tok_details->service() == GaiaConstants::kGaiaService) { |
| 327 if (client_login_.get() == NULL) { | 327 if (client_login_.get() == NULL) { |
| 328 client_login_.reset(new GaiaAuthFetcher(this, | 328 client_login_.reset(new GaiaAuthFetcher(this, |
| 329 GaiaConstants::kChromeSource, | 329 GaiaConstants::kChromeSource, |
| 330 profile_->GetRequestContext())); | 330 profile_->GetRequestContext())); |
| 331 } | 331 } |
| 332 | 332 |
| 333 client_login_->StartTokenAuth(tok_details->token()); | 333 client_login_->StartMergeSession(tok_details->token()); |
| 334 | 334 |
| 335 // We only want to do this once per sign-in. | 335 // We only want to do this once per sign-in. |
| 336 CleanupNotificationRegistration(); | 336 CleanupNotificationRegistration(); |
| 337 } | 337 } |
| 338 #endif | 338 #endif |
| 339 } | 339 } |
| OLD | NEW |