Index: components/gcm_driver/instance_id/instance_id_impl.cc |
diff --git a/components/gcm_driver/instance_id/instance_id_impl.cc b/components/gcm_driver/instance_id/instance_id_impl.cc |
index 65f2f7353e4fa38a069517682559e9590b5b54b5..998ad8593f7da75f847ddb0aea0616cb10ab2fc1 100644 |
--- a/components/gcm_driver/instance_id/instance_id_impl.cc |
+++ b/components/gcm_driver/instance_id/instance_id_impl.cc |
@@ -8,6 +8,7 @@ |
#include "base/base64.h" |
#include "base/bind.h" |
#include "base/logging.h" |
+#include "base/memory/scoped_ptr.h" |
#include "base/message_loop/message_loop.h" |
#include "base/strings/string_number_conversions.h" |
#include "components/gcm_driver/gcm_driver_desktop.h" |
@@ -44,9 +45,9 @@ InstanceID::Result GCMClientResultToInstanceIDResult( |
} // namespace |
// static |
-InstanceID* InstanceID::Create(const std::string& app_id, |
- gcm::GCMDriver* gcm_driver) { |
- return new InstanceIDImpl(app_id, gcm_driver); |
+scoped_ptr<InstanceID> InstanceID::Create(const std::string& app_id, |
+ gcm::GCMDriver* gcm_driver) { |
+ return make_scoped_ptr(new InstanceIDImpl(app_id, gcm_driver)); |
} |
InstanceIDImpl::InstanceIDImpl(const std::string& app_id, |