| Index: chrome/browser/services/gcm/fake_gcm_profile_service.cc
|
| diff --git a/chrome/browser/services/gcm/fake_gcm_profile_service.cc b/chrome/browser/services/gcm/fake_gcm_profile_service.cc
|
| index e1926a3b4539a3b99c5364fbd9227cc330957bdd..a1b5e3c24ee68faed00c89a3d93a2b237c387ef9 100644
|
| --- a/chrome/browser/services/gcm/fake_gcm_profile_service.cc
|
| +++ b/chrome/browser/services/gcm/fake_gcm_profile_service.cc
|
| @@ -105,11 +105,12 @@ void CustomFakeGCMDriver::OnSendFinished(const std::string& app_id,
|
| } // namespace
|
|
|
| // static
|
| -KeyedService* FakeGCMProfileService::Build(content::BrowserContext* context) {
|
| +scoped_ptr<KeyedService> FakeGCMProfileService::Build(
|
| + content::BrowserContext* context) {
|
| Profile* profile = static_cast<Profile*>(context);
|
| - FakeGCMProfileService* service = new FakeGCMProfileService(profile);
|
| - service->SetDriverForTesting(new CustomFakeGCMDriver(service));
|
| - return service;
|
| + scoped_ptr<FakeGCMProfileService> service(new FakeGCMProfileService(profile));
|
| + service->SetDriverForTesting(new CustomFakeGCMDriver(service.get()));
|
| + return service.Pass();
|
| }
|
|
|
| FakeGCMProfileService::FakeGCMProfileService(Profile* profile)
|
|
|