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

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

Issue 1097663003: Fetch OAuth2 tokens prior to profile creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set up default networks 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
« chromeos/login/auth/user_context.h ('K') | « 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 d82ae5af3aa382b9b587ced4ec89943828077fcc..0791822e30a272a3e910be347363f9e9d5302d24 100644
--- a/chromeos/login/auth/user_context.cc
+++ b/chromeos/login/auth/user_context.cc
@@ -19,6 +19,7 @@ UserContext::UserContext(const UserContext& other)
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_),
@@ -89,6 +90,10 @@ const std::string& UserContext::GetRefreshToken() const {
return refresh_token_;
}
+const std::string& UserContext::GetAccessToken() const {
+ return access_token_;
+}
+
const std::string& UserContext::GetUserIDHash() const {
return user_id_hash_;
}
@@ -142,6 +147,10 @@ void UserContext::SetRefreshToken(const std::string& refresh_token) {
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;
}
« chromeos/login/auth/user_context.h ('K') | « chromeos/login/auth/user_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698