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

Unified Diff: chrome/browser/signin/signin_internals_util.h

Issue 14888003: [Sync] Log age of auth tokens on authentication failure (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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/signin/signin_internals_util.h
diff --git a/chrome/browser/signin/signin_internals_util.h b/chrome/browser/signin/signin_internals_util.h
index 993a8eea1cc6aac6be9fbfabb67ff2b2ee92d707..eeec21587094db8220bd8286f7111a23d8a0245a 100644
--- a/chrome/browser/signin/signin_internals_util.h
+++ b/chrome/browser/signin/signin_internals_util.h
@@ -64,14 +64,16 @@ enum {
// values, we replicate the service name within this struct for a cleaner
// serialization (with ToValue()).
struct TokenInfo {
- std::string token; // The actual token.
- std::string status; // Status of the last token fetch.
- std::string time; // Timestamp of the last token fetch.
+ std::string token; // The actual token.
+ std::string status; // Status of the last token fetch.
+ std::string time; // Timestamp of the last token fetch
+ int64 time_internal; // Same as |time|, but in base::Time internal format.
std::string service; // The service that this token is for.
TokenInfo(const std::string& token,
const std::string& status,
const std::string& time,
+ const int64& time_internal,
const std::string& service);
TokenInfo();
~TokenInfo();
@@ -88,7 +90,7 @@ typedef std::map<std::string, TokenInfo> TokenInfoMap;
std::string TokenPrefPath(const std::string& service_name);
// Many values in SigninStatus are also associated with a timestamp.
-// This makes it easier to keep values and their assoicated times together.
+// This makes it easier to keep values and their associated times together.
typedef std::pair<std::string, std::string> TimedSigninStatusValue;
// Returns the name of a SigninStatus field.
« no previous file with comments | « chrome/browser/signin/about_signin_internals_factory.cc ('k') | chrome/browser/signin/signin_internals_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698