Index: chrome/browser/ui/ash/multi_user/multi_user_util.h |
diff --git a/chrome/browser/ui/ash/multi_user/multi_user_util.h b/chrome/browser/ui/ash/multi_user/multi_user_util.h |
index b85a4589a477eb943ac9a423effdc02250b5daaa..406c30cd24b71e9e98f2f65552b818dcf0f4794d 100644 |
--- a/chrome/browser/ui/ash/multi_user/multi_user_util.h |
+++ b/chrome/browser/ui/ash/multi_user/multi_user_util.h |
@@ -7,6 +7,7 @@ |
#include <string> |
+class AccountId; |
class Profile; |
namespace aura { |
@@ -16,13 +17,13 @@ class Window; |
namespace multi_user_util { |
// Get the user id from a given profile. |
-std::string GetUserIDFromProfile(Profile* profile); |
+AccountId GetAccountIdFromProfile(Profile* profile); |
// Get the user id from an email address. |
-std::string GetUserIDFromEmail(const std::string& email); |
+AccountId GetAccountIdFromEmail(const std::string& email); |
// Get a profile for a given user id. |
-Profile* GetProfileFromUserID(const std::string& user_id); |
+Profile* GetProfileFromAccountId(const AccountId& account_id); |
// Get a profile for a |window|. Returns NULL if window belongs to no profile. |
Profile* GetProfileFromWindow(aura::Window* window); |
@@ -32,9 +33,9 @@ Profile* GetProfileFromWindow(aura::Window* window); |
// return false. |
bool IsProfileFromActiveUser(Profile* profile); |
-// Gets the current user. Note that this will only return for ChromeOS a string. |
-// All other operating systems will get an empty string. |
-const std::string& GetCurrentUserId(); |
+// Gets the current user. Note that this will return real AccountId for |
stevenjb
2015/11/06 17:45:29
s/real/a valid/
Alexander Alekseev
2015/11/06 23:38:59
Done.
|
+// ChromeOS only. All other operating systems will get an empty AccountId. |
+const AccountId GetCurrentAccountId(); |
// Move the window to the current user's desktop. |
void MoveWindowToCurrentDesktop(aura::Window* window); |