| OLD | NEW |
| 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_USERS_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/login/user_flow.h" | 10 #include "chrome/browser/chromeos/login/user_flow.h" |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 // construction and tears it down again on destruction. | 374 // construction and tears it down again on destruction. |
| 375 class ScopedTestUserManager { | 375 class ScopedTestUserManager { |
| 376 public: | 376 public: |
| 377 ScopedTestUserManager(); | 377 ScopedTestUserManager(); |
| 378 ~ScopedTestUserManager(); | 378 ~ScopedTestUserManager(); |
| 379 | 379 |
| 380 private: | 380 private: |
| 381 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 381 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
| 382 }; | 382 }; |
| 383 | 383 |
| 384 // Returns the UserManager singleton instance or |NULL| if the singleton has |
| 385 // either not been created yet or is already destroyed. This method is not |
| 386 // thread-safe and must be called from the main UI thread. |
| 387 // Note: Since UserManager class will be moved to compoments/ all clients should |
| 388 // use this getter and *not use* GetUserManager(). |
| 389 UserManager* GetUserManager(); |
| 390 |
| 384 } // namespace chromeos | 391 } // namespace chromeos |
| 385 | 392 |
| 386 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ | 393 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ |
| OLD | NEW |