Chromium Code Reviews| Index: chrome/browser/services/gcm/gcm_profile_service.h |
| diff --git a/chrome/browser/services/gcm/gcm_profile_service.h b/chrome/browser/services/gcm/gcm_profile_service.h |
| index eb476befdaa9b77ec887d11ca3bd1abb239abfde..a8c695ce772e6efbe620020b8c8e621e93bb9836 100644 |
| --- a/chrome/browser/services/gcm/gcm_profile_service.h |
| +++ b/chrome/browser/services/gcm/gcm_profile_service.h |
| @@ -10,6 +10,7 @@ |
| #include "base/compiler_specific.h" |
| #include "base/macros.h" |
| #include "base/memory/scoped_ptr.h" |
| +#include "chrome/browser/services/gcm/push_messaging_service_impl.h" |
| // TODO(jianli): include needed for obsolete methods that are going to be |
| // removed soon. |
| #include "components/gcm_driver/gcm_driver.h" |
| @@ -54,6 +55,10 @@ class GCMProfileService : public KeyedService { |
| GCMDriver* driver() const { return driver_.get(); } |
| + content::PushMessagingService* push_messaging_service() { |
|
jianli
2014/06/06 17:32:20
nit: add const modifier
johnme
2014/06/06 18:48:24
Done.
johnme
2014/06/09 19:04:45
Actually, I replied too soon - I had to remove the
|
| + return &push_messaging_service_; |
| + } |
| + |
| protected: |
| // Used for constructing fake GCMProfileService for testing purpose. |
| GCMProfileService(); |
| @@ -64,6 +69,9 @@ class GCMProfileService : public KeyedService { |
| scoped_ptr<GCMDriver> driver_; |
| + // Implementation of content::PushMessagingService using GCMProfileService. |
| + PushMessagingServiceImpl push_messaging_service_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(GCMProfileService); |
| }; |