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

Unified Diff: components/user_manager/user_manager_base.cc

Issue 1229883003: ChromeOS: should send old user GAPS cookie to GAIA on user reauthentication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 5 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
« no previous file with comments | « components/user_manager/user_manager_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_manager/user_manager_base.cc
diff --git a/components/user_manager/user_manager_base.cc b/components/user_manager/user_manager_base.cc
index 3e11ff871068bace74871ce0cb3bbe828229cce5..e98fb03c73ecf0a146e14e036ea97e25ae1e03c1 100644
--- a/components/user_manager/user_manager_base.cc
+++ b/components/user_manager/user_manager_base.cc
@@ -88,6 +88,9 @@ const char kUsingSAMLKey[] = "using_saml";
// Key of Device Id.
const char kDeviceId[] = "device_id";
+// Key of GAPS cookie.
+const char kGAPSCookie[] = "gaps_cookie";
+
// Key of the reason for re-auth.
const char kReauthReasonKey[] = "reauth_reason";
@@ -1163,6 +1166,19 @@ std::string UserManagerBase::GetKnownUserDeviceId(const UserID& user_id) {
return std::string();
}
+void UserManagerBase::SetKnownUserGAPSCookie(const UserID& user_id,
+ const std::string& gaps_cookie) {
+ SetKnownUserStringPref(user_id, kGAPSCookie, gaps_cookie);
+}
+
+std::string UserManagerBase::GetKnownUserGAPSCookie(const UserID& user_id) {
+ std::string gaps_cookie;
+ if (GetKnownUserStringPref(user_id, kGAPSCookie, &gaps_cookie)) {
+ return gaps_cookie;
+ }
+ return std::string();
+}
+
User* UserManagerBase::RemoveRegularOrSupervisedUserFromList(
const std::string& user_id) {
ListPrefUpdate prefs_users_update(GetLocalState(), kRegularUsers);
« no previous file with comments | « components/user_manager/user_manager_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698