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

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

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months 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 Profile; 14 class Profile;
15 15
16 namespace user_manager {
17 class UserID;
18 }
19
16 namespace chromeos { 20 namespace chromeos {
17 21
18 // UserFlow implementation for creating new supervised user. 22 // UserFlow implementation for creating new supervised user.
19 class SupervisedUserCreationFlow : public ExtendedUserFlow { 23 class SupervisedUserCreationFlow : public ExtendedUserFlow {
20 public: 24 public:
21 explicit SupervisedUserCreationFlow(const std::string& manager_id); 25 explicit SupervisedUserCreationFlow(const user_manager::UserID& manager_id);
22 ~SupervisedUserCreationFlow() override; 26 ~SupervisedUserCreationFlow() override;
23 27
24 bool CanLockScreen() override; 28 bool CanLockScreen() override;
25 bool ShouldShowSettings() override; 29 bool ShouldShowSettings() override;
26 bool ShouldLaunchBrowser() override; 30 bool ShouldLaunchBrowser() override;
27 bool ShouldSkipPostLoginScreens() override; 31 bool ShouldSkipPostLoginScreens() override;
28 bool SupportsEarlyRestartToApplyFlags() override; 32 bool SupportsEarlyRestartToApplyFlags() override;
29 bool HandleLoginFailure(const AuthFailure& failure) override; 33 bool HandleLoginFailure(const AuthFailure& failure) override;
30 void HandleLoginSuccess(const UserContext& context) override; 34 void HandleLoginSuccess(const UserContext& context) override;
31 bool HandlePasswordChangeDetected() override; 35 bool HandlePasswordChangeDetected() override;
(...skipping 19 matching lines...) Expand all
51 bool session_started_; 55 bool session_started_;
52 56
53 Profile* manager_profile_; 57 Profile* manager_profile_;
54 58
55 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationFlow); 59 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationFlow);
56 }; 60 };
57 61
58 } // namespace chromeos 62 } // namespace chromeos
59 63
60 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_FLO W_H_ 64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_FLO W_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698