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

Unified Diff: components/gcm_driver/instance_id/instance_id_driver.h

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_driver.h
diff --git a/components/gcm_driver/instance_id/instance_id_driver.h b/components/gcm_driver/instance_id/instance_id_driver.h
index 4bb9fd736155a019ac9911652c4ffbbaf0ef8f37..d2d9a4ffc4d4690c68ca133a90d87d40fc31e902 100644
--- a/components/gcm_driver/instance_id/instance_id_driver.h
+++ b/components/gcm_driver/instance_id/instance_id_driver.h
@@ -5,11 +5,11 @@
#ifndef COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_DRIVER_H_
#define COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_DRIVER_H_
-#include <map>
#include <string>
+#include "base/containers/scoped_ptr_map.h"
#include "base/macros.h"
-#include "base/stl_util.h"
+#include "base/memory/scoped_ptr.h"
namespace gcm {
class GCMDriver;
@@ -43,9 +43,7 @@ class InstanceIDDriver {
private:
gcm::GCMDriver* gcm_driver_; // Not owned.
- typedef std::map<std::string, InstanceID*> InstanceIDMap;
- InstanceIDMap instance_id_map_;
- STLValueDeleter<InstanceIDMap> instance_id_map_deleter_;
+ base::ScopedPtrMap<std::string, scoped_ptr<InstanceID>> instance_id_map_;
DISALLOW_COPY_AND_ASSIGN(InstanceIDDriver);
};
« no previous file with comments | « components/gcm_driver/instance_id/instance_id_android.cc ('k') | components/gcm_driver/instance_id/instance_id_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698