summaryrefslogtreecommitdiffstats
path: root/chrome/browser/invalidation/invalidation_service_factory.cc
diff options
context:
space:
mode:
authorbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-23 19:46:53 +0000
committerbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-23 19:46:53 +0000
commita263ff59f18b9ab39601fafe4e60e44e9a20d20f (patch)
tree027c91e3e5811572d8d9bc111f962ca69a61d0e7 /chrome/browser/invalidation/invalidation_service_factory.cc
parent2442605058353f23d08db64f39cff92c48f7e8e6 (diff)
downloadchromium_src-a263ff59f18b9ab39601fafe4e60e44e9a20d20f.zip
chromium_src-a263ff59f18b9ab39601fafe4e60e44e9a20d20f.tar.gz
chromium_src-a263ff59f18b9ab39601fafe4e60e44e9a20d20f.tar.bz2
Rename InvalidationAuthProvider to IdentityProvider
The InvalidationAuthProvider is useful outside the area of invalidation: It provides an abstract interface for accessing the logged-in GAIA account and receiving notifications about login/logout events. This CL renames the InvalidationAuthProvider to IdentityProvider and places it in the gaia_apis component. This change is a prerequisite for CL 225403021, which will use the IdentityProvider in GCM. BUG=362083 TEST=Updated tests TBR=atwilson (for chrome/browser/sync/test/integration/sync_test.cc) Review URL: https://codereview.chromium.org/235273002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265706 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/invalidation/invalidation_service_factory.cc')
-rw-r--r--chrome/browser/invalidation/invalidation_service_factory.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/invalidation/invalidation_service_factory.cc b/chrome/browser/invalidation/invalidation_service_factory.cc
index 91ea1fd..61b2e07 100644
--- a/chrome/browser/invalidation/invalidation_service_factory.cc
+++ b/chrome/browser/invalidation/invalidation_service_factory.cc
@@ -11,10 +11,10 @@
#include "chrome/browser/invalidation/invalidation_service.h"
#include "chrome/browser/invalidation/invalidation_service_android.h"
#include "chrome/browser/invalidation/invalidator_storage.h"
-#include "chrome/browser/invalidation/profile_invalidation_auth_provider.h"
#include "chrome/browser/invalidation/ticl_invalidation_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
+#include "chrome/browser/signin/profile_identity_provider.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
@@ -35,8 +35,8 @@
#include "chrome/browser/chromeos/login/user_manager.h"
#include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
+#include "chrome/browser/chromeos/settings/device_identity_provider.h"
#include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h"
-#include "chrome/browser/invalidation/device_invalidation_auth_provider_chromeos.h"
#endif
namespace invalidation {
@@ -98,7 +98,7 @@ KeyedService* InvalidationServiceFactory::BuildServiceInstanceFor(
new InvalidationControllerAndroid());
#else
- scoped_ptr<InvalidationAuthProvider> auth_provider;
+ scoped_ptr<IdentityProvider> identity_provider;
#if defined(OS_CHROMEOS)
policy::BrowserPolicyConnectorChromeOS* connector =
@@ -106,20 +106,20 @@ KeyedService* InvalidationServiceFactory::BuildServiceInstanceFor(
if (chromeos::UserManager::IsInitialized() &&
chromeos::UserManager::Get()->IsLoggedInAsKioskApp() &&
connector->IsEnterpriseManaged()) {
- auth_provider.reset(new DeviceInvalidationAuthProvider(
+ identity_provider.reset(new chromeos::DeviceIdentityProvider(
chromeos::DeviceOAuth2TokenServiceFactory::Get()));
}
#endif
- if (!auth_provider) {
- auth_provider.reset(new ProfileInvalidationAuthProvider(
+ if (!identity_provider) {
+ identity_provider.reset(new ProfileIdentityProvider(
SigninManagerFactory::GetForProfile(profile),
ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
LoginUIServiceFactory::GetForProfile(profile)));
}
TiclInvalidationService* service = new TiclInvalidationService(
- auth_provider.Pass(),
+ identity_provider.Pass(),
profile->GetRequestContext(),
profile);
service->Init(scoped_ptr<syncer::InvalidationStateTracker>(