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

Unified Diff: sync/engine/entity_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/directory_update_handler_unittest.cc ('k') | sync/engine/entity_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/entity_tracker.h
diff --git a/sync/engine/entity_tracker.h b/sync/engine/entity_tracker.h
index e969ff97146fec5f791d2158e85e1de515186e35..f60af7dcaee79310a794ff7a7abce197c1672cf2 100644
--- a/sync/engine/entity_tracker.h
+++ b/sync/engine/entity_tracker.h
@@ -34,12 +34,13 @@ class SYNC_EXPORT EntityTracker {
~EntityTracker();
// Initialize a new entity based on an update response.
- static EntityTracker* FromServerUpdate(const std::string& id_string,
- const std::string& client_tag_hash,
- int64 version);
+ static scoped_ptr<EntityTracker> FromServerUpdate(
+ const std::string& id_string,
+ const std::string& client_tag_hash,
+ int64 version);
// Initialize a new entity based on a commit request.
- static EntityTracker* FromCommitRequest(
+ static scoped_ptr<EntityTracker> FromCommitRequest(
const std::string& id_string,
const std::string& client_tag_hash,
int64 sequence_number,
« no previous file with comments | « sync/engine/directory_update_handler_unittest.cc ('k') | sync/engine/entity_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698