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

Unified Diff: chrome/browser/chromeos/login/users/user_manager.h

Issue 375413002: Replace chromeos::UserManager::Get() with chromeos::GetUserManager(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/users/user_manager.h
diff --git a/chrome/browser/chromeos/login/users/user_manager.h b/chrome/browser/chromeos/login/users/user_manager.h
index dbd8a29b7e11fcde91482df3180bb616751b1cbe..79b57198940080c3cae1c4238b24f9c18cb0cc87 100644
--- a/chrome/browser/chromeos/login/users/user_manager.h
+++ b/chrome/browser/chromeos/login/users/user_manager.h
@@ -381,6 +381,13 @@ class ScopedTestUserManager {
DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager);
};
+// Returns the UserManager singleton instance or |NULL| if the singleton has
+// either not been created yet or is already destroyed. This method is not
+// thread-safe and must be called from the main UI thread.
+// Note: Since UserManager class will be moved to compoments/ all clients should
+// use this getter and *not use* GetUserManager().
+UserManager* GetUserManager();
+
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698