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

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

Issue 10656033: [sync] Automatic bootstrapping of Sync on Win 8 from cached credentials (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fully decouple PSS and CCS. Created 8 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
Index: chrome/browser/signin/token_service.h
diff --git a/chrome/browser/signin/token_service.h b/chrome/browser/signin/token_service.h
index 8e39362a9744902f244fda9a1f1210dc5e93013a..bc3a29558d12a347124b95e16b5a4e867c4525e8 100644
--- a/chrome/browser/signin/token_service.h
+++ b/chrome/browser/signin/token_service.h
@@ -94,6 +94,19 @@ class TokenService : public GaiaAuthConsumer,
GoogleServiceAuthError error_;
};
+ class CredentialsUpdatedDetails {
+ public:
+ CredentialsUpdatedDetails() {}
Andrew T Wilson (Slow) 2012/07/24 20:57:41 Do we need this default constructor? Seems illegal
Raghu Simha 2012/07/24 22:17:35 Removed.
+ CredentialsUpdatedDetails(const std::string& lsid,
+ const std::string& sid)
+ : lsid_(lsid), sid_(sid) {}
+ const std::string& lsid() const { return lsid_; }
+ const std::string& sid() const { return sid_; }
+ private:
+ std::string lsid_;
+ std::string sid_;
+ };
+
// Initialize this token service with a request source
// (usually from a GaiaAuthConsumer constant), and the profile.
// Typically you'd then update the credentials.
@@ -182,6 +195,9 @@ class TokenService : public GaiaAuthConsumer,
// This method is meant only for tests.
static void GetServiceNamesForTesting(std::vector<std::string>* names);
+ void FireCredentialsUpdatedNotification(const std::string& lsid,
+ const std::string& sid);
+
void FireTokenAvailableNotification(const std::string& service,
const std::string& auth_token);

Powered by Google App Engine
This is Rietveld 408576698