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

Unified Diff: sync/engine/commit_processor.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/commit.cc ('k') | sync/engine/commit_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/commit_processor.h
diff --git a/sync/engine/commit_processor.h b/sync/engine/commit_processor.h
index c3af5d814455e9069383d7f3adef18b87fcd6769..70e0e99c524571deafa53b3d0d01197bb0b73bc4 100644
--- a/sync/engine/commit_processor.h
+++ b/sync/engine/commit_processor.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "sync/base/sync_export.h"
+#include "sync/engine/commit.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/internal_api/public/engine/model_safe_worker.h"
#include "sync/sessions/model_type_registry.h"
@@ -31,8 +32,6 @@ class CommitContribution;
// contains a type which was not previously registered.
class SYNC_EXPORT_PRIVATE CommitProcessor {
public:
- typedef std::map<ModelType, CommitContribution*> ContributionMap;
-
// Contructs a CommitProcessor from a map of CommitContributors.
// The CommitProcessor does not own this map.
explicit CommitProcessor(CommitContributorMap* commit_contributor_map);
@@ -44,10 +43,9 @@ class SYNC_EXPORT_PRIVATE CommitProcessor {
// map, gather any entries queued for commit into CommitContributions. The
// total number of entries in all the returned CommitContributions shall not
// exceed |max_entries|.
- void GatherCommitContributions(
- ModelTypeSet commit_types,
- size_t max_entries,
- ContributionMap* contributions);
+ void GatherCommitContributions(ModelTypeSet commit_types,
+ size_t max_entries,
+ Commit::ContributionMap* contributions);
private:
// A map of 'commit contributors', one for each enabled type.
« no previous file with comments | « sync/engine/commit.cc ('k') | sync/engine/commit_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698