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 29 matching lines...) Expand all Loading... | |
40 } | 40 } |
41 | 41 |
42 bool SupervisedUserLoginFlow::ShouldLaunchBrowser() { | 42 bool SupervisedUserLoginFlow::ShouldLaunchBrowser() { |
43 return data_loaded_; | 43 return data_loaded_; |
44 } | 44 } |
45 | 45 |
46 bool SupervisedUserLoginFlow::ShouldSkipPostLoginScreens() { | 46 bool SupervisedUserLoginFlow::ShouldSkipPostLoginScreens() { |
47 return true; | 47 return true; |
48 } | 48 } |
49 | 49 |
50 bool SupervisedUserLoginFlow::SupportsEarlyRestartToApplyFlags() { | |
51 return true; | |
Nikita (slow)
2014/10/15 18:12:48
Supervised user login is actually guarded here:
ht
Nikita (slow)
2014/10/16 09:45:06
I've changed this to false in second patchset.
| |
52 } | |
53 | |
50 bool SupervisedUserLoginFlow::HandleLoginFailure(const AuthFailure& failure) { | 54 bool SupervisedUserLoginFlow::HandleLoginFailure(const AuthFailure& failure) { |
51 return false; | 55 return false; |
52 } | 56 } |
53 | 57 |
54 bool SupervisedUserLoginFlow::HandlePasswordChangeDetected() { | 58 bool SupervisedUserLoginFlow::HandlePasswordChangeDetected() { |
55 return false; | 59 return false; |
56 } | 60 } |
57 | 61 |
58 void SupervisedUserLoginFlow::HandleOAuthTokenStatusChange( | 62 void SupervisedUserLoginFlow::HandleOAuthTokenStatusChange( |
59 user_manager::User::OAuthTokenStatus status) { | 63 user_manager::User::OAuthTokenStatus status) { |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
249 void SupervisedUserLoginFlow::LaunchExtraSteps( | 253 void SupervisedUserLoginFlow::LaunchExtraSteps( |
250 Profile* profile) { | 254 Profile* profile) { |
251 profile_ = profile; | 255 profile_ = profile; |
252 ChromeUserManager::Get()->GetSupervisedUserManager()->LoadSupervisedUserToken( | 256 ChromeUserManager::Get()->GetSupervisedUserManager()->LoadSupervisedUserToken( |
253 profile, | 257 profile, |
254 base::Bind(&SupervisedUserLoginFlow::OnSyncSetupDataLoaded, | 258 base::Bind(&SupervisedUserLoginFlow::OnSyncSetupDataLoaded, |
255 weak_factory_.GetWeakPtr())); | 259 weak_factory_.GetWeakPtr())); |
256 } | 260 } |
257 | 261 |
258 } // namespace chromeos | 262 } // namespace chromeos |
OLD | NEW |