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

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

Issue 393343002: Rename "managed (mode|user)" to "supervised user" (part 7) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more alphabetize (and rebase again) Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MANAGED_LOCALLY_MANAGED_USER_CREATION_FLOW _H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_FLOW_H _
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_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 "chrome/browser/chromeos/login/users/user.h" 12 #include "chrome/browser/chromeos/login/users/user.h"
13 13
14 class Profile; 14 class Profile;
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 // UserFlow implementation for creating new locally managed user. 18 // UserFlow implementation for creating new supervised user.
19 class LocallyManagedUserCreationFlow : public ExtendedUserFlow { 19 class SupervisedUserCreationFlow : public ExtendedUserFlow {
20 public: 20 public:
21 explicit LocallyManagedUserCreationFlow(const std::string& manager_id); 21 explicit SupervisedUserCreationFlow(const std::string& manager_id);
22 virtual ~LocallyManagedUserCreationFlow(); 22 virtual ~SupervisedUserCreationFlow();
23 23
24 virtual bool CanLockScreen() OVERRIDE; 24 virtual bool CanLockScreen() OVERRIDE;
25 virtual bool ShouldShowSettings() OVERRIDE; 25 virtual bool ShouldShowSettings() OVERRIDE;
26 virtual bool ShouldLaunchBrowser() OVERRIDE; 26 virtual bool ShouldLaunchBrowser() OVERRIDE;
27 virtual bool ShouldSkipPostLoginScreens() OVERRIDE; 27 virtual bool ShouldSkipPostLoginScreens() OVERRIDE;
28 virtual bool HandleLoginFailure(const AuthFailure& failure) OVERRIDE; 28 virtual bool HandleLoginFailure(const AuthFailure& failure) OVERRIDE;
29 virtual void HandleLoginSuccess(const UserContext& context) OVERRIDE; 29 virtual void HandleLoginSuccess(const UserContext& context) OVERRIDE;
30 virtual bool HandlePasswordChangeDetected() OVERRIDE; 30 virtual bool HandlePasswordChangeDetected() OVERRIDE;
31 virtual void HandleOAuthTokenStatusChange(User::OAuthTokenStatus status) 31 virtual void HandleOAuthTokenStatusChange(User::OAuthTokenStatus status)
32 OVERRIDE; 32 OVERRIDE;
(...skipping 10 matching lines...) Expand all
43 // Indicates if manager was successfully authenticated against 43 // Indicates if manager was successfully authenticated against
44 // local cryptohome. 44 // local cryptohome.
45 bool logged_in_; 45 bool logged_in_;
46 46
47 // Indicates that cryptohome is mounted and OAuth2 token is validated. 47 // Indicates that cryptohome is mounted and OAuth2 token is validated.
48 // Used to avoid multiple notifications. 48 // Used to avoid multiple notifications.
49 bool session_started_; 49 bool session_started_;
50 50
51 Profile* manager_profile_; 51 Profile* manager_profile_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationFlow); 53 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationFlow);
54 }; 54 };
55 55
56 } // namespace chromeos 56 } // namespace chromeos
57 57
58 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_F LOW_H_ 58 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_FLO W_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698