| 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/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // Supervised users should launch into empty desktop on first run. | 39 // Supervised users should launch into empty desktop on first run. |
| 40 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 40 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 41 ::switches::kSilentLaunch); | 41 ::switches::kSilentLaunch); |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool SupervisedUserLoginFlow::CanLockScreen() { | 45 bool SupervisedUserLoginFlow::CanLockScreen() { |
| 46 return true; | 46 return true; |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool SupervisedUserLoginFlow::CanStartArc() { |
| 50 return false; |
| 51 } |
| 52 |
| 49 bool SupervisedUserLoginFlow::ShouldLaunchBrowser() { | 53 bool SupervisedUserLoginFlow::ShouldLaunchBrowser() { |
| 50 return data_loaded_; | 54 return data_loaded_; |
| 51 } | 55 } |
| 52 | 56 |
| 53 bool SupervisedUserLoginFlow::ShouldSkipPostLoginScreens() { | 57 bool SupervisedUserLoginFlow::ShouldSkipPostLoginScreens() { |
| 54 return true; | 58 return true; |
| 55 } | 59 } |
| 56 | 60 |
| 57 bool SupervisedUserLoginFlow::SupportsEarlyRestartToApplyFlags() { | 61 bool SupervisedUserLoginFlow::SupportsEarlyRestartToApplyFlags() { |
| 58 return false; | 62 return false; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 void SupervisedUserLoginFlow::LaunchExtraSteps( | 261 void SupervisedUserLoginFlow::LaunchExtraSteps( |
| 258 Profile* profile) { | 262 Profile* profile) { |
| 259 profile_ = profile; | 263 profile_ = profile; |
| 260 ChromeUserManager::Get()->GetSupervisedUserManager()->LoadSupervisedUserToken( | 264 ChromeUserManager::Get()->GetSupervisedUserManager()->LoadSupervisedUserToken( |
| 261 profile, | 265 profile, |
| 262 base::Bind(&SupervisedUserLoginFlow::OnSyncSetupDataLoaded, | 266 base::Bind(&SupervisedUserLoginFlow::OnSyncSetupDataLoaded, |
| 263 weak_factory_.GetWeakPtr())); | 267 weak_factory_.GetWeakPtr())); |
| 264 } | 268 } |
| 265 | 269 |
| 266 } // namespace chromeos | 270 } // namespace chromeos |
| OLD | NEW |