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

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: Rebase. 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 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,

Powered by Google App Engine
This is Rietveld 408576698