| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/supervised/supervised_user_login_flow.h" | 5 #include "chrome/browser/chromeos/login/supervised/supervised_user_login_flow.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/prefs/pref_registry_simple.h" | 10 #include "base/prefs/pref_registry_simple.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 bool SupervisedUserLoginFlow::HandleLoginFailure(const AuthFailure& failure) { | 49 bool SupervisedUserLoginFlow::HandleLoginFailure(const AuthFailure& failure) { |
| 50 return false; | 50 return false; |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool SupervisedUserLoginFlow::HandlePasswordChangeDetected() { | 53 bool SupervisedUserLoginFlow::HandlePasswordChangeDetected() { |
| 54 return false; | 54 return false; |
| 55 } | 55 } |
| 56 | 56 |
| 57 void SupervisedUserLoginFlow::HandleOAuthTokenStatusChange( | 57 void SupervisedUserLoginFlow::HandleOAuthTokenStatusChange( |
| 58 User::OAuthTokenStatus status) { | 58 user_manager::User::OAuthTokenStatus status) { |
| 59 } | 59 } |
| 60 | 60 |
| 61 void SupervisedUserLoginFlow::OnSyncSetupDataLoaded( | 61 void SupervisedUserLoginFlow::OnSyncSetupDataLoaded( |
| 62 const std::string& token) { | 62 const std::string& token) { |
| 63 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 63 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 64 ConfigureSync(token); | 64 ConfigureSync(token); |
| 65 } | 65 } |
| 66 | 66 |
| 67 void SupervisedUserLoginFlow::ConfigureSync(const std::string& token) { | 67 void SupervisedUserLoginFlow::ConfigureSync(const std::string& token) { |
| 68 data_loaded_ = true; | 68 data_loaded_ = true; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 Profile* profile) { | 249 Profile* profile) { |
| 250 profile_ = profile; | 250 profile_ = profile; |
| 251 UserManager::Get()->GetSupervisedUserManager()->LoadSupervisedUserToken( | 251 UserManager::Get()->GetSupervisedUserManager()->LoadSupervisedUserToken( |
| 252 profile, | 252 profile, |
| 253 base::Bind( | 253 base::Bind( |
| 254 &SupervisedUserLoginFlow::OnSyncSetupDataLoaded, | 254 &SupervisedUserLoginFlow::OnSyncSetupDataLoaded, |
| 255 weak_factory_.GetWeakPtr())); | 255 weak_factory_.GetWeakPtr())); |
| 256 } | 256 } |
| 257 | 257 |
| 258 } // namespace chromeos | 258 } // namespace chromeos |
| OLD | NEW |