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 3d2d2109cdfbe5eb0858b789bccd4fbc4c3e5837..09222e6e0b41c2a960cc0e00c8179a8ed53b0b20 100644 |
--- a/chrome/browser/services/gcm/fake_gcm_profile_service.cc |
+++ b/chrome/browser/services/gcm/fake_gcm_profile_service.cc |
@@ -115,12 +115,14 @@ KeyedService* FakeGCMProfileService::Build(content::BrowserContext* context) { |
FakeGCMProfileService::FakeGCMProfileService(Profile* profile) |
: collect_(false), |
registration_count_(0) { |
- static_cast<PushMessagingServiceImpl*>(push_messaging_service()) |
- ->SetProfileForTesting(profile); |
} |
FakeGCMProfileService::~FakeGCMProfileService() {} |
+FakeGCMProfileService* FakeGCMProfileService::AsFakeGCMProfileService() { |
+ return this; |
+} |
+ |
void FakeGCMProfileService::RegisterFinished( |
const std::string& app_id, |
const std::vector<std::string>& sender_ids) { |