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 584b90332c4b4e4b6918eab975015f0c159fbcd0..0123b696568b3c15a7a8f3ec1413bd935a32faac 100644 |
--- a/chrome/browser/services/gcm/fake_gcm_profile_service.cc |
+++ b/chrome/browser/services/gcm/fake_gcm_profile_service.cc |
@@ -112,7 +112,10 @@ KeyedService* FakeGCMProfileService::Build(content::BrowserContext* context) { |
} |
FakeGCMProfileService::FakeGCMProfileService(Profile* profile) |
- : collect_(false) {} |
+ : collect_(false) { |
+ static_cast<PushMessagingServiceImpl*>(push_messaging_service()) |
+ ->SetProfileForTesting(profile); |
+} |
FakeGCMProfileService::~FakeGCMProfileService() {} |