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

Side by Side Diff: chrome/browser/chromeos/login/oauth_login_manager.cc

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 years, 9 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) 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/oauth_login_manager.h" 5 #include "chrome/browser/chromeos/login/oauth_login_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/chromeos/login/oauth2_login_manager.h" 8 #include "chrome/browser/chromeos/login/oauth2_login_manager.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/signin/token_service.h" 10 #include "chrome/browser/signin/token_service.h"
(...skipping 16 matching lines...) Expand all
27 delegate_->OnCompletedAuthentication(user_profile_); 27 delegate_->OnCompletedAuthentication(user_profile_);
28 TokenService* token_service = 28 TokenService* token_service =
29 TokenServiceFactory::GetForProfile(user_profile_); 29 TokenServiceFactory::GetForProfile(user_profile_);
30 if (token_service->AreCredentialsValid()) 30 if (token_service->AreCredentialsValid())
31 token_service->StartFetchingTokens(); 31 token_service->StartFetchingTokens();
32 } 32 }
33 33
34 OAuthLoginManager::OAuthLoginManager(Delegate* delegate) 34 OAuthLoginManager::OAuthLoginManager(Delegate* delegate)
35 : delegate_(delegate), 35 : delegate_(delegate),
36 user_profile_(NULL), 36 user_profile_(NULL),
37 restore_from_auth_cookies_(false), 37 restore_strategy_(RESTORE_FROM_COOKIE_JAR),
38 state_(SESSION_RESTORE_NOT_STARTED) { 38 state_(SESSION_RESTORE_NOT_STARTED) {
39 } 39 }
40 40
41 OAuthLoginManager::~OAuthLoginManager() { 41 OAuthLoginManager::~OAuthLoginManager() {
42 } 42 }
43 43
44 } // namespace chromeos 44 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/oauth_login_manager.h ('k') | chrome/browser/chromeos/login/online_attempt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698