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

Unified Diff: components/signin/core/browser/webdata/token_service_table.h

Issue 2672833002: [Desktop] Add diagnostics about loading the refresh tokens. (Closed)
Patch Set: Fix compile Created 3 years, 10 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: components/signin/core/browser/webdata/token_service_table.h
diff --git a/components/signin/core/browser/webdata/token_service_table.h b/components/signin/core/browser/webdata/token_service_table.h
index 70cf20e93dcbc709e39df816064fa60459a61595..b6d750f0ce5aaf3127133dda1dd7f47fcfd825a0 100644
--- a/components/signin/core/browser/webdata/token_service_table.h
+++ b/components/signin/core/browser/webdata/token_service_table.h
@@ -16,6 +16,13 @@ class WebDatabase;
class TokenServiceTable : public WebDatabaseTable {
public:
+ enum Result {
+ TOKEN_DB_RESULT_SQL_INVALID_STATEMENT,
+ TOKEN_DB_RESULT_BAD_ENTRY,
+ TOKEN_DB_RESULT_DECRYPT_ERROR,
+ TOKEN_DB_RESULT_SUCCESS
+ };
+
TokenServiceTable() {}
~TokenServiceTable() override {}
@@ -36,7 +43,7 @@ class TokenServiceTable : public WebDatabaseTable {
// Retrieves all tokens previously set with SetTokenForService.
// Returns true if there were tokens and we decrypted them,
// false if there was a failure somehow
- bool GetAllTokens(std::map<std::string, std::string>* tokens);
+ Result GetAllTokens(std::map<std::string, std::string>* tokens);
// Store a token in the token_service table. Stored encrypted. May cause
// a mac keychain popup.
« no previous file with comments | « components/signin/core/browser/signin_internals_util.h ('k') | components/signin/core/browser/webdata/token_service_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698