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

Side by Side Diff: chrome/browser/chromeos/login/supervised/supervised_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_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "chrome/browser/chromeos/login/user_flow.h" 12 #include "chrome/browser/chromeos/login/user_flow.h"
13 #include "chromeos/login/auth/extended_authenticator.h" 13 #include "chromeos/login/auth/extended_authenticator.h"
14 #include "chromeos/login/auth/user_context.h" 14 #include "chromeos/login/auth/user_context.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 // UserFlow implementation for signing in supervised user. 18 // UserFlow implementation for signing in supervised user.
19 class SupervisedUserLoginFlow 19 class SupervisedUserLoginFlow
20 : public ExtendedUserFlow, 20 : public ExtendedUserFlow,
21 public ExtendedAuthenticator::NewAuthStatusConsumer { 21 public ExtendedAuthenticator::NewAuthStatusConsumer {
22 public: 22 public:
23 explicit SupervisedUserLoginFlow(const AccountId& account_id); 23 explicit SupervisedUserLoginFlow(const AccountId& account_id);
24 ~SupervisedUserLoginFlow() override; 24 ~SupervisedUserLoginFlow() override;
25 25
26 // ExtendedUserFlow overrides. 26 // ExtendedUserFlow overrides.
27 void AppendAdditionalCommandLineSwitches() override; 27 void AppendAdditionalCommandLineSwitches() override;
28 bool CanLockScreen() override; 28 bool CanLockScreen() override;
29 bool CanStartArc() override;
29 bool ShouldLaunchBrowser() override; 30 bool ShouldLaunchBrowser() override;
30 bool ShouldSkipPostLoginScreens() override; 31 bool ShouldSkipPostLoginScreens() override;
31 bool SupportsEarlyRestartToApplyFlags() override; 32 bool SupportsEarlyRestartToApplyFlags() override;
32 bool HandleLoginFailure(const AuthFailure& failure) override; 33 bool HandleLoginFailure(const AuthFailure& failure) override;
33 void HandleLoginSuccess(const UserContext& context) override; 34 void HandleLoginSuccess(const UserContext& context) override;
34 bool HandlePasswordChangeDetected() override; 35 bool HandlePasswordChangeDetected() override;
35 void LaunchExtraSteps(Profile* profile) override; 36 void LaunchExtraSteps(Profile* profile) override;
36 37
37 // ExtendedAuthenticator::NewAuthStatusConsumer overrides. 38 // ExtendedAuthenticator::NewAuthStatusConsumer overrides.
38 void OnAuthenticationFailure(ExtendedAuthenticator::AuthState state) override; 39 void OnAuthenticationFailure(ExtendedAuthenticator::AuthState state) override;
(...skipping 16 matching lines...) Expand all
55 UserContext context_; 56 UserContext context_;
56 Profile* profile_ = nullptr; 57 Profile* profile_ = nullptr;
57 base::WeakPtrFactory<SupervisedUserLoginFlow> weak_factory_; 58 base::WeakPtrFactory<SupervisedUserLoginFlow> weak_factory_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(SupervisedUserLoginFlow); 60 DISALLOW_COPY_AND_ASSIGN(SupervisedUserLoginFlow);
60 }; 61 };
61 62
62 } // namespace chromeos 63 } // namespace chromeos
63 64
64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H _ 65 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698