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

Side by Side Diff: chrome/browser/chromeos/login/managed/locally_managed_user_creation_flow.h

Issue 14028005: Update locally managed user creation flow according to mocks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with TOT Created 7 years, 8 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_MANAGED_LOCALLY_MANAGED_USER_CREATION_FLOW _H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_FLOW _H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_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/string16.h" 10 #include "base/string16.h"
11 #include "chrome/browser/chromeos/login/user_flow.h" 11 #include "chrome/browser/chromeos/login/user_flow.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 // UserFlow implementation for creating new locally managed user. 15 // UserFlow implementation for creating new locally managed user.
16 class LocallyManagedUserCreationFlow : public ExtendedUserFlow { 16 class LocallyManagedUserCreationFlow : public ExtendedUserFlow {
17 public: 17 public:
18 LocallyManagedUserCreationFlow(const std::string& manager_id, 18 explicit LocallyManagedUserCreationFlow(const std::string& manager_id);
19 string16 name,
20 const std::string& password);
21 virtual ~LocallyManagedUserCreationFlow(); 19 virtual ~LocallyManagedUserCreationFlow();
22 20
23 virtual bool ShouldLaunchBrowser() OVERRIDE; 21 virtual bool ShouldLaunchBrowser() OVERRIDE;
24 virtual bool ShouldSkipPostLoginScreens() OVERRIDE; 22 virtual bool ShouldSkipPostLoginScreens() OVERRIDE;
25 virtual bool HandleLoginFailure(const LoginFailure& failure) OVERRIDE; 23 virtual bool HandleLoginFailure(const LoginFailure& failure) OVERRIDE;
26 virtual bool HandlePasswordChangeDetected() OVERRIDE; 24 virtual bool HandlePasswordChangeDetected() OVERRIDE;
27 virtual void HandleOAuthTokenStatusChange(User::OAuthTokenStatus status) 25 virtual void HandleOAuthTokenStatusChange(User::OAuthTokenStatus status)
28 OVERRIDE; 26 OVERRIDE;
29 virtual void LaunchExtraSteps(Profile* profile) OVERRIDE; 27 virtual void LaunchExtraSteps(Profile* profile) OVERRIDE;
30 private: 28 private:
31 // Display name for user being created. 29 // Display name for user being created.
32 string16 name_; 30 string16 name_;
33 // Password for user being created. 31 // Password for user being created.
34 std::string password_; 32 std::string password_;
35 33
36 // Indicates if manager OAuth2 token has been validated. 34 // Indicates if manager OAuth2 token has been validated.
37 bool token_validated_; 35 bool token_validated_;
38 36
39 // Indicates if manager was successfully authenticated against 37 // Indicates if manager was successfully authenticated against
40 // local cryptohome. 38 // local cryptohome.
41 bool logged_in_; 39 bool logged_in_;
42 40
43 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationFlow); 41 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationFlow);
44 }; 42 };
45 43
46 } // namespace chromeos 44 } // namespace chromeos
47 45
48 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_F LOW_H_ 46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_F LOW_H_
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/login/managed/locally_managed_user_creation_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698