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

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: Add test source code file to CL 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autologin_infobar_delegate.cc » ('j') | content/common/url_fetcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698