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

Side by Side Diff: chrome/browser/chromeos/login/easy_unlock/bootstrap_user_flow.cc

Issue 2513473006: Stop running arc container on supervised user creation flow (Closed)
Patch Set: rebased Created 4 years 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698