X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fservices%2Fgcm%2Fgcm_profile_service_factory.cc;h=aff75d89c5d017478446879f41fd05ac13f3b9db;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=c116c1afd5f26cb1e4a03ed08cf8d5fab9bfe2cc;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/services/gcm/gcm_profile_service_factory.cc b/src/chrome/browser/services/gcm/gcm_profile_service_factory.cc index c116c1a..aff75d8 100644 --- a/src/chrome/browser/services/gcm/gcm_profile_service_factory.cc +++ b/src/chrome/browser/services/gcm/gcm_profile_service_factory.cc @@ -37,13 +37,12 @@ GCMProfileServiceFactory::~GCMProfileServiceFactory() { BrowserContextKeyedService* GCMProfileServiceFactory::BuildServiceInstanceFor( content::BrowserContext* context) const { - GCMClientFactory::BuildClientFromUI(); - Profile* profile = static_cast(context); if (!gcm::GCMProfileService::IsGCMEnabled(profile)) return NULL; GCMProfileService* service = new GCMProfileService(profile); - service->Initialize(); + scoped_ptr gcm_client_factory(new GCMClientFactory); + service->Initialize(gcm_client_factory.Pass()); return service; }