OLD | NEW |
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 Loading... |
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 |
OLD | NEW |