| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/easy_unlock/bootstrap_user_flow.h" | 5 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_user_flow.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
| 9 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.h" | 9 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.h" |
| 10 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" | 10 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 UserSessionManager::GetInstance()->DoBrowserLaunch(user_profile_, host()); | 115 UserSessionManager::GetInstance()->DoBrowserLaunch(user_profile_, host()); |
| 116 | 116 |
| 117 user_profile_ = nullptr; | 117 user_profile_ = nullptr; |
| 118 UnregisterFlowSoon(); | 118 UnregisterFlowSoon(); |
| 119 } | 119 } |
| 120 | 120 |
| 121 bool BootstrapUserFlow::CanLockScreen() { | 121 bool BootstrapUserFlow::CanLockScreen() { |
| 122 return false; | 122 return false; |
| 123 } | 123 } |
| 124 | 124 |
| 125 bool BootstrapUserFlow::CanStartArc() { |
| 126 return false; |
| 127 } |
| 128 |
| 125 bool BootstrapUserFlow::ShouldLaunchBrowser() { | 129 bool BootstrapUserFlow::ShouldLaunchBrowser() { |
| 126 return finished_; | 130 return finished_; |
| 127 } | 131 } |
| 128 | 132 |
| 129 bool BootstrapUserFlow::ShouldSkipPostLoginScreens() { | 133 bool BootstrapUserFlow::ShouldSkipPostLoginScreens() { |
| 130 return true; | 134 return true; |
| 131 } | 135 } |
| 132 | 136 |
| 133 bool BootstrapUserFlow::HandleLoginFailure( | 137 bool BootstrapUserFlow::HandleLoginFailure( |
| 134 const chromeos::AuthFailure& failure) { | 138 const chromeos::AuthFailure& failure) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 177 |
| 174 void BootstrapUserFlow::OnAuthenticationFailure( | 178 void BootstrapUserFlow::OnAuthenticationFailure( |
| 175 ExtendedAuthenticator::AuthState state) { | 179 ExtendedAuthenticator::AuthState state) { |
| 176 // TODO(xiyuan): Show error UI. | 180 // TODO(xiyuan): Show error UI. |
| 177 LOG(ERROR) << "Bootstrapped failed because authenticator falure" | 181 LOG(ERROR) << "Bootstrapped failed because authenticator falure" |
| 178 << ", state=" << state; | 182 << ", state=" << state; |
| 179 chrome::AttemptUserExit(); | 183 chrome::AttemptUserExit(); |
| 180 } | 184 } |
| 181 | 185 |
| 182 } // namespace chromeos | 186 } // namespace chromeos |
| OLD | NEW |