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

Unified Diff: chrome/browser/chromeos/login/signin/token_handle_util.h

Issue 1128923006: Do not invalidate OAuth token status user when token handle is invalid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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
Index: chrome/browser/chromeos/login/signin/token_handle_util.h
diff --git a/chrome/browser/chromeos/login/signin/token_handle_util.h b/chrome/browser/chromeos/login/signin/token_handle_util.h
index 17836602aafbf6e076c2bde056a79e695f823ed3..592d8623c12ab3c459571017e6c42baac1cb8c65 100644
--- a/chrome/browser/chromeos/login/signin/token_handle_util.h
+++ b/chrome/browser/chromeos/login/signin/token_handle_util.h
@@ -40,7 +40,14 @@ class TokenHandleUtil {
bool HasToken(const user_manager::UserID& user_id);
// Removes token handle for |user_id| from UserManager storage.
- void DeleteToken(const user_manager::UserID& user_id);
+ void DeleteHandle(const user_manager::UserID& user_id);
+
+ // Marks current handle as invalid, new one should be obtained at next sign
+ // in.
+ void MarkHandleInvalid(const user_manager::UserID& user_id);
+
+ // Indicates if token handle for |user_id| is missing or marked as invalid.
+ bool ShouldObtainHandle(const user_manager::UserID& user_id);
// Performs token handle check for |user_id|. Will call |callback| with
// corresponding result.

Powered by Google App Engine
This is Rietveld 408576698