| Index: chrome/browser/services/gcm/gcm_profile_service_factory.cc
|
| diff --git a/chrome/browser/services/gcm/gcm_profile_service_factory.cc b/chrome/browser/services/gcm/gcm_profile_service_factory.cc
|
| index 489feea77f89822858b5d5a86d6598928f37c559..2724911ffdf7cf00e0b03d6ce3fcc54bde1b1a41 100644
|
| --- a/chrome/browser/services/gcm/gcm_profile_service_factory.cc
|
| +++ b/chrome/browser/services/gcm/gcm_profile_service_factory.cc
|
| @@ -13,7 +13,7 @@ namespace gcm {
|
|
|
| // static
|
| GCMProfileService* GCMProfileServiceFactory::GetForProfile(Profile* profile) {
|
| - if (!gcm::GCMProfileService::IsGCMEnabled())
|
| + if (!gcm::GCMProfileService::IsGCMEnabled(profile))
|
| return NULL;
|
|
|
| return static_cast<GCMProfileService*>(
|
| @@ -35,9 +35,10 @@ GCMProfileServiceFactory::~GCMProfileServiceFactory() {
|
| }
|
|
|
| BrowserContextKeyedService* GCMProfileServiceFactory::BuildServiceInstanceFor(
|
| - content::BrowserContext* profile) const {
|
| - return gcm::GCMProfileService::IsGCMEnabled() ?
|
| - new GCMProfileService(static_cast<Profile*>(profile)) : NULL;
|
| + content::BrowserContext* context) const {
|
| + Profile* profile = static_cast<Profile*>(context);
|
| + return gcm::GCMProfileService::IsGCMEnabled(profile) ?
|
| + new GCMProfileService(profile) : NULL;
|
| }
|
|
|
| content::BrowserContext* GCMProfileServiceFactory::GetBrowserContextToUse(
|
|
|