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

Unified Diff: components/gcm_driver/instance_id/instance_id_android.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_android.cc
diff --git a/components/gcm_driver/instance_id/instance_id_android.cc b/components/gcm_driver/instance_id/instance_id_android.cc
index 9e7a1640422cbe24cf252fdcbcc2d4a927f81c84..86542ca8ba23f34b971cc4f9109b5cbac6d71238 100644
--- a/components/gcm_driver/instance_id/instance_id_android.cc
+++ b/components/gcm_driver/instance_id/instance_id_android.cc
@@ -5,13 +5,14 @@
#include "components/gcm_driver/instance_id/instance_id_android.h"
#include "base/logging.h"
+#include "base/memory/scoped_ptr.h"
namespace instance_id {
// static
-InstanceID* InstanceID::Create(const std::string& app_id,
- gcm::GCMDriver* gcm_driver) {
- return new InstanceIDAndroid(app_id);
+scoped_ptr<InstanceID> InstanceID::Create(const std::string& app_id,
+ gcm::GCMDriver* gcm_driver) {
+ return make_scoped_ptr(new InstanceIDAndroid(app_id));
}
InstanceIDAndroid::InstanceIDAndroid(const std::string& app_id)
« no previous file with comments | « components/gcm_driver/instance_id/instance_id.h ('k') | components/gcm_driver/instance_id/instance_id_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698