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

Side by Side Diff: chrome/browser/sync/signin_manager.cc

Issue 7600003: Pre- and Auto-login should not log the user out of an already signed in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autologin_infobar_delegate.cc » ('j') | chrome/common/net/gaia/gaia_auth_fetcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698