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

Side by Side Diff: chrome/browser/chromeos/login/supervised/supervised_user_login_flow.cc

Issue 398753004: [cros] Move User class to user_manager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698