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

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

Issue 2822033002: cros: Use SessionController to enable system tray settings / notifications tray (Closed)
Patch Set: Created 3 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
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/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.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 AccountId;
15 class Profile; 15 class Profile;
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 // UserFlow implementation for creating new supervised user. 19 // UserFlow implementation for creating new supervised user.
20 class SupervisedUserCreationFlow : public ExtendedUserFlow { 20 class SupervisedUserCreationFlow : public ExtendedUserFlow {
21 public: 21 public:
22 explicit SupervisedUserCreationFlow(const AccountId& manager_id); 22 explicit SupervisedUserCreationFlow(const AccountId& manager_id);
23 ~SupervisedUserCreationFlow() override; 23 ~SupervisedUserCreationFlow() override;
24 24
25 // UserFlow:
25 bool CanLockScreen() override; 26 bool CanLockScreen() override;
26 bool CanStartArc() override; 27 bool CanStartArc() override;
27 bool ShouldShowSettings() override; 28 bool ShouldEnableSettings() override;
28 bool ShouldShowNotificationTray() override; 29 bool ShouldShowNotificationTray() override;
29 bool ShouldLaunchBrowser() override; 30 bool ShouldLaunchBrowser() override;
30 bool ShouldSkipPostLoginScreens() override; 31 bool ShouldSkipPostLoginScreens() override;
31 bool SupportsEarlyRestartToApplyFlags() override; 32 bool SupportsEarlyRestartToApplyFlags() override;
32 bool HandleLoginFailure(const AuthFailure& failure) override; 33 bool HandleLoginFailure(const AuthFailure& failure) override;
33 void HandleLoginSuccess(const UserContext& context) override; 34 void HandleLoginSuccess(const UserContext& context) override;
34 bool HandlePasswordChangeDetected() override; 35 bool HandlePasswordChangeDetected() override;
35 void HandleOAuthTokenStatusChange( 36 void HandleOAuthTokenStatusChange(
36 user_manager::User::OAuthTokenStatus status) override; 37 user_manager::User::OAuthTokenStatus status) override;
37 void LaunchExtraSteps(Profile* profile) override; 38 void LaunchExtraSteps(Profile* profile) override;
(...skipping 16 matching lines...) Expand all
54 bool session_started_; 55 bool session_started_;
55 56
56 Profile* manager_profile_; 57 Profile* manager_profile_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationFlow); 59 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationFlow);
59 }; 60 };
60 61
61 } // namespace chromeos 62 } // namespace chromeos
62 63
63 #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