summaryrefslogtreecommitdiffstats
path: root/chrome/browser/invalidation/gcm_invalidation_bridge.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/invalidation/gcm_invalidation_bridge.cc')
-rw-r--r--chrome/browser/invalidation/gcm_invalidation_bridge.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/invalidation/gcm_invalidation_bridge.cc b/chrome/browser/invalidation/gcm_invalidation_bridge.cc
index dd1b5d8..5925eda 100644
--- a/chrome/browser/invalidation/gcm_invalidation_bridge.cc
+++ b/chrome/browser/invalidation/gcm_invalidation_bridge.cc
@@ -7,13 +7,13 @@
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "chrome/browser/invalidation/gcm_invalidation_bridge.h"
-#include "chrome/browser/invalidation/invalidation_auth_provider.h"
#include "chrome/browser/services/gcm/gcm_profile_service.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "components/signin/core/browser/signin_manager.h"
#include "google_apis/gaia/gaia_constants.h"
+#include "google_apis/gaia/identity_provider.h"
namespace invalidation {
namespace {
@@ -149,10 +149,10 @@ void GCMInvalidationBridge::Core::OnIncomingMessage(
GCMInvalidationBridge::GCMInvalidationBridge(
gcm::GCMProfileService* gcm_profile_service,
- InvalidationAuthProvider* auth_provider)
+ IdentityProvider* identity_provider)
: OAuth2TokenService::Consumer("gcm_network_channel"),
gcm_profile_service_(gcm_profile_service),
- auth_provider_(auth_provider),
+ identity_provider_(identity_provider),
subscribed_for_incoming_messages_(false),
weak_factory_(this) {}
@@ -195,8 +195,8 @@ void GCMInvalidationBridge::RequestToken(
request_token_callback_ = callback;
OAuth2TokenService::ScopeSet scopes;
scopes.insert(GaiaConstants::kChromeSyncOAuth2Scope);
- access_token_request_ = auth_provider_->GetTokenService()->StartRequest(
- auth_provider_->GetAccountId(), scopes, this);
+ access_token_request_ = identity_provider_->GetTokenService()->StartRequest(
+ identity_provider_->GetActiveAccountId(), scopes, this);
}
void GCMInvalidationBridge::OnGetTokenSuccess(
@@ -236,8 +236,8 @@ void GCMInvalidationBridge::InvalidateToken(const std::string& token) {
DCHECK(CalledOnValidThread());
OAuth2TokenService::ScopeSet scopes;
scopes.insert(GaiaConstants::kChromeSyncOAuth2Scope);
- auth_provider_->GetTokenService()->InvalidateToken(
- auth_provider_->GetAccountId(), scopes, token);
+ identity_provider_->GetTokenService()->InvalidateToken(
+ identity_provider_->GetActiveAccountId(), scopes, token);
}
void GCMInvalidationBridge::Register(