Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(884)

Unified Diff: components/gcm_driver/instance_id/instance_id_impl.cc

Issue 1096983002: Update usages of std::map to use ScopedPtrMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@passwordmanager-scopedmemory
Patch Set: Fix Mac compile. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 3850eb19ee63136337bdbbe4aa1d719bfa429d05..66259b0619e65d6e84c61ad6693c685d3f7eac63 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,

Powered by Google App Engine
This is Rietveld 408576698