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

Unified Diff: sync/sessions/nudge_tracker.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
« no previous file with comments | « sync/engine/model_type_sync_worker_impl.cc ('k') | sync/sessions/nudge_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/nudge_tracker.h
diff --git a/sync/sessions/nudge_tracker.h b/sync/sessions/nudge_tracker.h
index ec2277c5052e2d4427bd9d48af8dc5c8874c5b92..d82a3714d5a15f2b4d9e942a4d80f97023300eec 100644
--- a/sync/sessions/nudge_tracker.h
+++ b/sync/sessions/nudge_tracker.h
@@ -11,6 +11,7 @@
#include <map>
#include "base/compiler_specific.h"
+#include "base/containers/scoped_ptr_map.h"
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "sync/base/sync_export.h"
@@ -158,10 +159,10 @@ class SYNC_EXPORT_PRIVATE NudgeTracker {
void SetDefaultNudgeDelay(base::TimeDelta nudge_delay);
private:
- typedef std::map<ModelType, DataTypeTracker*> TypeTrackerMap;
+ typedef base::ScopedPtrMap<ModelType, scoped_ptr<DataTypeTracker>>
+ TypeTrackerMap;
TypeTrackerMap type_trackers_;
- STLValueDeleter<TypeTrackerMap> type_tracker_deleter_;
// Tracks whether or not invalidations are currently enabled.
bool invalidations_enabled_;
« no previous file with comments | « sync/engine/model_type_sync_worker_impl.cc ('k') | sync/sessions/nudge_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698