| Index: chromeos/login/auth/user_context.h
|
| diff --git a/chromeos/login/auth/user_context.h b/chromeos/login/auth/user_context.h
|
| index a4440cc26228c534a851d9239412bb327c010dea..4dbd71b272a698111f1a76abf808937ff33599cf 100644
|
| --- a/chromeos/login/auth/user_context.h
|
| +++ b/chromeos/login/auth/user_context.h
|
| @@ -9,16 +9,12 @@
|
|
|
| #include "chromeos/chromeos_export.h"
|
| #include "chromeos/login/auth/key.h"
|
| -#include "components/signin/core/account_id/account_id.h"
|
| #include "components/user_manager/user_type.h"
|
| -
|
| -class AccountId;
|
|
|
| namespace chromeos {
|
|
|
| // Information that is passed around while authentication is in progress. The
|
| -// credentials may consist of a |account_id_|, |key_| pair or a GAIA
|
| -// |auth_code_|.
|
| +// credentials may consist of a |user_id_|, |key_| pair or a GAIA |auth_code_|.
|
| // The |user_id_hash_| is used to locate the user's home directory
|
| // mount point for the user. It is set when the mount has been completed.
|
| class CHROMEOS_EXPORT UserContext {
|
| @@ -39,14 +35,14 @@
|
|
|
| UserContext();
|
| UserContext(const UserContext& other);
|
| - explicit UserContext(const AccountId& account_id);
|
| + explicit UserContext(const std::string& user_id);
|
| UserContext(user_manager::UserType user_type, const std::string& user_id);
|
| ~UserContext();
|
|
|
| bool operator==(const UserContext& context) const;
|
| bool operator!=(const UserContext& context) const;
|
|
|
| - const AccountId& GetAccountId() const;
|
| + const std::string& GetUserID() const;
|
| const std::string& GetGaiaID() const;
|
| const Key* GetKey() const;
|
| Key* GetKey();
|
| @@ -82,16 +78,16 @@
|
| void ClearSecrets();
|
|
|
| private:
|
| - AccountId account_id_;
|
| + std::string user_id_;
|
| std::string gaia_id_;
|
| Key key_;
|
| std::string auth_code_;
|
| std::string refresh_token_;
|
| std::string access_token_; // OAuthLogin scoped access token.
|
| std::string user_id_hash_;
|
| - bool is_using_oauth_ = true;
|
| - AuthFlow auth_flow_ = AUTH_FLOW_OFFLINE;
|
| - user_manager::UserType user_type_ = user_manager::USER_TYPE_REGULAR;
|
| + bool is_using_oauth_;
|
| + AuthFlow auth_flow_;
|
| + user_manager::UserType user_type_;
|
| std::string public_session_locale_;
|
| std::string public_session_input_method_;
|
| std::string device_id_;
|
|
|