| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXISTING_USER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // Changes state of the status area. During login operation it's disabled. | 129 // Changes state of the status area. During login operation it's disabled. |
| 130 void SetStatusAreaEnabled(bool enable); | 130 void SetStatusAreaEnabled(bool enable); |
| 131 | 131 |
| 132 // Show error message. |error_id| error message ID in resources. | 132 // Show error message. |error_id| error message ID in resources. |
| 133 // If |details| string is not empty, it specify additional error text | 133 // If |details| string is not empty, it specify additional error text |
| 134 // provided by authenticator, it is not localized. | 134 // provided by authenticator, it is not localized. |
| 135 void ShowError(int error_id, const std::string& details); | 135 void ShowError(int error_id, const std::string& details); |
| 136 | 136 |
| 137 // Handles result of ownership check and starts enterprise enrollment if | 137 // Handles result of ownership check and starts enterprise enrollment if |
| 138 // applicable. | 138 // applicable. |
| 139 void OnEnrollmentOwnershipCheckCompleted(OwnershipService::Status status, | 139 void OnEnrollmentOwnershipCheckCompleted(OwnershipService::Status status); |
| 140 bool current_user_is_owner); | |
| 141 | 140 |
| 142 void set_login_performer_delegate(LoginPerformer::Delegate* d) { | 141 void set_login_performer_delegate(LoginPerformer::Delegate* d) { |
| 143 login_performer_delegate_.reset(d); | 142 login_performer_delegate_.reset(d); |
| 144 } | 143 } |
| 145 | 144 |
| 146 // Passes owner user to cryptohomed and initiates disk control control check. | 145 // Passes owner user to cryptohomed and initiates disk control control check. |
| 147 // Subsequent disk space control checks are invoked by cryptohomed timer. | 146 // Subsequent disk space control checks are invoked by cryptohomed timer. |
| 148 void StartAutomaticFreeDiskSpaceControl(); | 147 void StartAutomaticFreeDiskSpaceControl(); |
| 149 | 148 |
| 150 // Used to execute login operations. | 149 // Used to execute login operations. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 scoped_ptr<OwnershipStatusChecker> ownership_checker_; | 196 scoped_ptr<OwnershipStatusChecker> ownership_checker_; |
| 198 | 197 |
| 199 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); | 198 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); |
| 200 | 199 |
| 201 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 200 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
| 202 }; | 201 }; |
| 203 | 202 |
| 204 } // namespace chromeos | 203 } // namespace chromeos |
| 205 | 204 |
| 206 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 205 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| OLD | NEW |