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

Side by Side Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_user_login_flow.h

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 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_USER_LOGIN_FLOW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_USER_LOGIN_FLOW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_USER_LOGIN_FLOW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_USER_LOGIN_FLOW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chrome/browser/chromeos/login/user_flow.h" 11 #include "chrome/browser/chromeos/login/user_flow.h"
12 12
13 class AccountId; 13 class AccountId;
14 14
15 // Handler for login flow initiazted by Easy Signin login attempt. 15 // Handler for login flow initiazted by Easy Signin login attempt.
16 // The only difference to the default login flow is hanlding of the auth 16 // The only difference to the default login flow is hanlding of the auth
17 // failure. 17 // failure.
18 class EasyUnlockUserLoginFlow : public chromeos::ExtendedUserFlow { 18 class EasyUnlockUserLoginFlow : public chromeos::ExtendedUserFlow {
19 public: 19 public:
20 explicit EasyUnlockUserLoginFlow(const AccountId& account_id); 20 explicit EasyUnlockUserLoginFlow(const AccountId& account_id);
21 ~EasyUnlockUserLoginFlow() override; 21 ~EasyUnlockUserLoginFlow() override;
22 22
23 private: 23 private:
24 // chromeos::ExtendedUserFlow implementation. 24 // chromeos::ExtendedUserFlow implementation.
25 bool CanLockScreen() override; 25 bool CanLockScreen() override;
26 bool CanStartArc() override;
26 bool ShouldLaunchBrowser() override; 27 bool ShouldLaunchBrowser() override;
27 bool ShouldSkipPostLoginScreens() override; 28 bool ShouldSkipPostLoginScreens() override;
28 bool HandleLoginFailure(const chromeos::AuthFailure& failure) override; 29 bool HandleLoginFailure(const chromeos::AuthFailure& failure) override;
29 void HandleLoginSuccess(const chromeos::UserContext& context) override; 30 void HandleLoginSuccess(const chromeos::UserContext& context) override;
30 bool HandlePasswordChangeDetected() override; 31 bool HandlePasswordChangeDetected() override;
31 void HandleOAuthTokenStatusChange( 32 void HandleOAuthTokenStatusChange(
32 user_manager::User::OAuthTokenStatus status) override; 33 user_manager::User::OAuthTokenStatus status) override;
33 void LaunchExtraSteps(Profile* profile) override; 34 void LaunchExtraSteps(Profile* profile) override;
34 bool SupportsEarlyRestartToApplyFlags() override; 35 bool SupportsEarlyRestartToApplyFlags() override;
35 36
36 DISALLOW_COPY_AND_ASSIGN(EasyUnlockUserLoginFlow); 37 DISALLOW_COPY_AND_ASSIGN(EasyUnlockUserLoginFlow);
37 }; 38 };
38 39
39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_USER_LOGIN_FLOW _H_ 40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_USER_LOGIN_FLOW _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698