Index: components/gcm_driver/instance_id/instance_id_impl_factory.cc |
diff --git a/components/gcm_driver/instance_id/instance_id_impl_factory.cc b/components/gcm_driver/instance_id/instance_id_impl_factory.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..99f8d40fe73f3f33b448f597b75ebf8c032d27dc |
--- /dev/null |
+++ b/components/gcm_driver/instance_id/instance_id_impl_factory.cc |
@@ -0,0 +1,18 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "components/gcm_driver/instance_id/instance_id_impl_factory.h" |
+ |
+#include "base/memory/ptr_util.h" |
+#include "components/gcm_driver/instance_id/instance_id_impl.h" |
+ |
+namespace instance_id { |
+ |
+std::unique_ptr<InstanceID> InstanceIDImplFactory::Create( |
+ const std::string& app_id, |
+ gcm::GCMDriver* gcm_driver) { |
+ return base::MakeUnique<InstanceIDImpl>(app_id, gcm_driver); |
+} |
+ |
+} // namespace instance_id |