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

Unified Diff: chromeos/login/auth/user_context.cc

Issue 1102863002: Revert of Fetch OAuth2 tokens prior to profile creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « chromeos/login/auth/user_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/user_context.cc
diff --git a/chromeos/login/auth/user_context.cc b/chromeos/login/auth/user_context.cc
index 4f51b34ef7ceec7bbdf9eabb3549ba85b2293025..d82ae5af3aa382b9b587ced4ec89943828077fcc 100644
--- a/chromeos/login/auth/user_context.cc
+++ b/chromeos/login/auth/user_context.cc
@@ -19,7 +19,6 @@
key_(other.key_),
auth_code_(other.auth_code_),
refresh_token_(other.refresh_token_),
- access_token_(other.access_token_),
user_id_hash_(other.user_id_hash_),
is_using_oauth_(other.is_using_oauth_),
auth_flow_(other.auth_flow_),
@@ -50,13 +49,14 @@
}
bool UserContext::operator==(const UserContext& context) const {
- return context.user_id_ == user_id_ && context.gaia_id_ == gaia_id_ &&
- context.key_ == key_ && context.auth_code_ == auth_code_ &&
- context.refresh_token_ == refresh_token_ &&
- context.access_token_ == access_token_ &&
+ return context.user_id_ == user_id_ &&
+ context.gaia_id_ == gaia_id_ &&
+ context.key_ == key_ &&
+ context.auth_code_ == auth_code_ &&
context.user_id_hash_ == user_id_hash_ &&
context.is_using_oauth_ == is_using_oauth_ &&
- context.auth_flow_ == auth_flow_ && context.user_type_ == user_type_ &&
+ context.auth_flow_ == auth_flow_ &&
+ context.user_type_ == user_type_ &&
context.public_session_locale_ == public_session_locale_ &&
context.public_session_input_method_ == public_session_input_method_;
}
@@ -87,10 +87,6 @@
const std::string& UserContext::GetRefreshToken() const {
return refresh_token_;
-}
-
-const std::string& UserContext::GetAccessToken() const {
- return access_token_;
}
const std::string& UserContext::GetUserIDHash() const {
@@ -146,10 +142,6 @@
refresh_token_ = refresh_token;
}
-void UserContext::SetAccessToken(const std::string& access_token) {
- access_token_ = access_token;
-}
-
void UserContext::SetUserIDHash(const std::string& user_id_hash) {
user_id_hash_ = user_id_hash;
}
« no previous file with comments | « chromeos/login/auth/user_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698