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

Unified Diff: sync/internal_api/public/base/model_type_test_util.cc

Issue 23441042: Refactor common invalidation framework types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move DEPS rule Created 7 years, 2 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: sync/internal_api/public/base/model_type_test_util.cc
diff --git a/sync/internal_api/public/base/model_type_test_util.cc b/sync/internal_api/public/base/model_type_test_util.cc
index 242b398bc0bfeeb99977804b937cf97efee6d28d..efad29c1700278748b55731a8aed9eb0c373c4bd 100644
--- a/sync/internal_api/public/base/model_type_test_util.cc
+++ b/sync/internal_api/public/base/model_type_test_util.cc
@@ -12,16 +12,9 @@ ObjectIdInvalidationMap BuildInvalidationMap(
const std::string& payload) {
ObjectIdInvalidationMap map;
invalidation::ObjectId id;
- Invalidation invalidation;
-
bool result = RealModelTypeToObjectId(type, &id);
- DCHECK(result)
- << "Conversion of model type to object id failed: "
- << ModelTypeToString(type);
- invalidation.version = version;
- invalidation.payload = payload;
-
- map.insert(std::make_pair(id, invalidation));
+ DCHECK(result);
+ map.Insert(Invalidation::Init(id, version, payload));
return map;
}

Powered by Google App Engine
This is Rietveld 408576698