Index: chrome/browser/gcm/instance_id/instance_id_profile_service.cc |
diff --git a/chrome/browser/gcm/instance_id/instance_id_profile_service.cc b/chrome/browser/gcm/instance_id/instance_id_profile_service.cc |
index 445af4840aac227824566c48029d3f05831aa9b6..1d79f590a400535bdd7556e485274199165bb8a5 100644 |
--- a/chrome/browser/gcm/instance_id/instance_id_profile_service.cc |
+++ b/chrome/browser/gcm/instance_id/instance_id_profile_service.cc |
@@ -24,8 +24,10 @@ bool InstanceIDProfileService::IsInstanceIDEnabled(Profile* profile) { |
InstanceIDProfileService::InstanceIDProfileService(Profile* profile) { |
DCHECK(!profile->IsOffTheRecord()); |
- driver_.reset(new InstanceIDDriver( |
- gcm::GCMProfileServiceFactory::GetForProfile(profile)->driver())); |
+ gcm::GCMProfileService* profile_service = |
+ gcm::GCMProfileServiceFactory::GetForProfile(profile); |
+ driver_.reset(new InstanceIDDriver(profile_service->driver(), |
+ profile_service->instance_id_factory())); |
} |
InstanceIDProfileService::~InstanceIDProfileService() { |