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

Side by Side Diff: chrome/browser/chromeos/login/supervised/supervised_user_creation_flow.h

Issue 1494153002: This CL replaces e-mail with AccountId in easy signin code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bugfix in original easy unlock code' Created 5 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_CREATION_FLOW_H _ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_FLOW_H _
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_FLOW_H _ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_FLOW_H _
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "chrome/browser/chromeos/login/user_flow.h" 11 #include "chrome/browser/chromeos/login/user_flow.h"
12 #include "components/user_manager/user.h" 12 #include "components/user_manager/user.h"
13 13
14 class AccountId;
14 class Profile; 15 class Profile;
15 16
16 namespace chromeos { 17 namespace chromeos {
17 18
18 // UserFlow implementation for creating new supervised user. 19 // UserFlow implementation for creating new supervised user.
19 class SupervisedUserCreationFlow : public ExtendedUserFlow { 20 class SupervisedUserCreationFlow : public ExtendedUserFlow {
20 public: 21 public:
21 explicit SupervisedUserCreationFlow(const std::string& manager_id); 22 explicit SupervisedUserCreationFlow(const AccountId& manager_id);
22 ~SupervisedUserCreationFlow() override; 23 ~SupervisedUserCreationFlow() override;
23 24
24 bool CanLockScreen() override; 25 bool CanLockScreen() override;
25 bool ShouldShowSettings() override; 26 bool ShouldShowSettings() override;
26 bool ShouldLaunchBrowser() override; 27 bool ShouldLaunchBrowser() override;
27 bool ShouldSkipPostLoginScreens() override; 28 bool ShouldSkipPostLoginScreens() override;
28 bool SupportsEarlyRestartToApplyFlags() override; 29 bool SupportsEarlyRestartToApplyFlags() override;
29 bool HandleLoginFailure(const AuthFailure& failure) override; 30 bool HandleLoginFailure(const AuthFailure& failure) override;
30 void HandleLoginSuccess(const UserContext& context) override; 31 void HandleLoginSuccess(const UserContext& context) override;
31 bool HandlePasswordChangeDetected() override; 32 bool HandlePasswordChangeDetected() override;
(...skipping 19 matching lines...) Expand all
51 bool session_started_; 52 bool session_started_;
52 53
53 Profile* manager_profile_; 54 Profile* manager_profile_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationFlow); 56 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationFlow);
56 }; 57 };
57 58
58 } // namespace chromeos 59 } // namespace chromeos
59 60
60 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_FLO W_H_ 61 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_FLO W_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698