Index: components/gcm_driver/gcm_profile_service.h |
diff --git a/components/gcm_driver/gcm_profile_service.h b/components/gcm_driver/gcm_profile_service.h |
index 4886b4eab86b8f365ea917d8a074200db4d4809b..3a01ca1cef37f25c432ec91aea7352b8ebb0c252 100644 |
--- a/components/gcm_driver/gcm_profile_service.h |
+++ b/components/gcm_driver/gcm_profile_service.h |
@@ -25,6 +25,10 @@ namespace base { |
class SequencedTaskRunner; |
} |
+namespace instance_id { |
+class InstanceIDFactory; |
+} |
+ |
namespace net { |
class URLRequestContextGetter; |
} |
@@ -67,6 +71,10 @@ class GCMProfileService : public KeyedService { |
GCMDriver* driver() const { return driver_.get(); } |
+ instance_id::InstanceIDFactory* instance_id_factory() const { |
+ return instance_id_factory_.get(); |
+ } |
+ |
protected: |
// Used for constructing fake GCMProfileService for testing purpose. |
GCMProfileService(); |
@@ -74,6 +82,7 @@ class GCMProfileService : public KeyedService { |
private: |
std::unique_ptr<ProfileIdentityProvider> profile_identity_provider_; |
std::unique_ptr<GCMDriver> driver_; |
+ std::unique_ptr<instance_id::InstanceIDFactory> instance_id_factory_; |
#if !BUILDFLAG(USE_GCM_FROM_PLATFORM) |
net::URLRequestContextGetter* request_context_ = nullptr; |