Index: components/gcm_driver/instance_id/instance_id_driver.h |
diff --git a/components/gcm_driver/instance_id/instance_id_driver.h b/components/gcm_driver/instance_id/instance_id_driver.h |
index f0ff94242889353db59a1713067c02b52d1e29b4..e87f8c80a88b3b08374bd6d99963f17cf87dd4d5 100644 |
--- a/components/gcm_driver/instance_id/instance_id_driver.h |
+++ b/components/gcm_driver/instance_id/instance_id_driver.h |
@@ -18,6 +18,7 @@ class GCMDriver; |
namespace instance_id { |
class InstanceID; |
+class InstanceIDFactory; |
// Bridge between Instance ID users in Chrome and the platform-specific |
// implementation. |
@@ -26,7 +27,7 @@ class InstanceIDDriver { |
// Returns whether InstanceID is enabled. |
static bool IsInstanceIDEnabled(); |
- explicit InstanceIDDriver(gcm::GCMDriver* gcm_driver); |
+ InstanceIDDriver(gcm::GCMDriver* gcm_driver, InstanceIDFactory* factory); |
virtual ~InstanceIDDriver(); |
// Returns the InstanceID that provides the Instance ID service for the given |
@@ -45,6 +46,7 @@ class InstanceIDDriver { |
// Owned by GCMProfileServiceFactory, which is a dependency of |
// InstanceIDProfileServiceFactory, which owns this. |
gcm::GCMDriver* gcm_driver_; |
+ InstanceIDFactory* const factory_; |
std::map<std::string, std::unique_ptr<InstanceID>> instance_id_map_; |