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

Unified Diff: components/sync/engine_impl/model_type_registry.cc

Issue 2842373004: [sync] Purge directory data when migrating to USS (Closed)
Patch Set: [sync] Add constexpr to EnumSet Created 3 years, 8 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/sync/engine_impl/model_type_registry.cc
diff --git a/components/sync/engine_impl/model_type_registry.cc b/components/sync/engine_impl/model_type_registry.cc
index bbdba9ea1b2a994221ea1658f699cf22e767850f..a122e1aab2b0eac60096d2f8619c7a84eb137614 100644
--- a/components/sync/engine_impl/model_type_registry.cc
+++ b/components/sync/engine_impl/model_type_registry.cc
@@ -127,8 +127,7 @@ void ModelTypeRegistry::ConnectNonBlockingType(
MODEL_TYPE_COUNT);
// If we succesfully migrated, purge the directory of data for the type.
// Purging removes the directory's local copy of the data only.
- directory()->PurgeEntriesWithTypeIn(ModelTypeSet(type), ModelTypeSet(),
- ModelTypeSet());
+ directory()->PurgeEntriesWithTypeIn({type}, {}, {});
} else {
UMA_HISTOGRAM_ENUMERATION("Sync.USSMigrationFailure",
ModelTypeToHistogramInt(type),

Powered by Google App Engine
This is Rietveld 408576698