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

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

Issue 654173005: Don't allow restarting to apply custom flags when supervised user creation flow is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: logging restart due flags as warning, don't restart for supervised users Created 6 years, 2 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 chromeos { 16 namespace chromeos {
17 17
18 // UserFlow implementation for creating new supervised user. 18 // UserFlow implementation for creating new supervised user.
19 class SupervisedUserCreationFlow : public ExtendedUserFlow { 19 class SupervisedUserCreationFlow : public ExtendedUserFlow {
20 public: 20 public:
21 explicit SupervisedUserCreationFlow(const std::string& manager_id); 21 explicit SupervisedUserCreationFlow(const std::string& manager_id);
22 virtual ~SupervisedUserCreationFlow(); 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 SupportsEarlyRestartToApplyFlags() override;
28 virtual bool HandleLoginFailure(const AuthFailure& failure) override; 29 virtual bool HandleLoginFailure(const AuthFailure& failure) override;
29 virtual void HandleLoginSuccess(const UserContext& context) override; 30 virtual void HandleLoginSuccess(const UserContext& context) override;
30 virtual bool HandlePasswordChangeDetected() override; 31 virtual bool HandlePasswordChangeDetected() override;
31 virtual void HandleOAuthTokenStatusChange( 32 virtual void HandleOAuthTokenStatusChange(
32 user_manager::User::OAuthTokenStatus status) override; 33 user_manager::User::OAuthTokenStatus status) override;
33 virtual void LaunchExtraSteps(Profile* profile) override; 34 virtual void LaunchExtraSteps(Profile* profile) override;
34 private: 35 private:
35 // Display name for user being created. 36 // Display name for user being created.
36 base::string16 name_; 37 base::string16 name_;
37 // Password for user being created. 38 // Password for user being created.
(...skipping 11 matching lines...) Expand all
49 bool session_started_; 50 bool session_started_;
50 51
51 Profile* manager_profile_; 52 Profile* manager_profile_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationFlow); 54 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationFlow);
54 }; 55 };
55 56
56 } // namespace chromeos 57 } // namespace chromeos
57 58
58 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_FLO W_H_ 59 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_FLO W_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698