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

Unified Diff: chrome/browser/invalidation/profile_invalidation_auth_provider.cc

Issue 225403021: Extract Profile-independent GCMService from GCMProfileService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pass scoped_refptr as const reference. Created 6 years, 8 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/invalidation/profile_invalidation_auth_provider.cc
diff --git a/chrome/browser/invalidation/profile_invalidation_auth_provider.cc b/chrome/browser/invalidation/profile_invalidation_auth_provider.cc
index 468520d60d69d4a67da5292a7810db0a8defcf2c..873602f0f30200cc3b2b50a1816a719859678fa9 100644
--- a/chrome/browser/invalidation/profile_invalidation_auth_provider.cc
+++ b/chrome/browser/invalidation/profile_invalidation_auth_provider.cc
@@ -23,6 +23,10 @@ ProfileInvalidationAuthProvider::~ProfileInvalidationAuthProvider() {
signin_manager_->RemoveObserver(this);
}
+std::string ProfileInvalidationAuthProvider::GetUsername() {
+ return signin_manager_->GetAuthenticatedUsername();
+}
+
std::string ProfileInvalidationAuthProvider::GetAccountId() {
return signin_manager_->GetAuthenticatedAccountId();
}
@@ -36,6 +40,12 @@ bool ProfileInvalidationAuthProvider::ShowLoginUI() {
return true;
}
+void ProfileInvalidationAuthProvider::GoogleSigninSucceeded(
+ const std::string& username,
+ const std::string& password) {
+ FireInvalidationAuthLogin();
+}
+
void ProfileInvalidationAuthProvider::GoogleSignedOut(
const std::string& username) {
FireInvalidationAuthLogout();

Powered by Google App Engine
This is Rietveld 408576698