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

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

Issue 2500223002: [Sync] Let ModelTypeRegistry filter out initial download USS types. (Closed)
Patch Set: Address comment. Created 4 years, 1 month 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 | « components/sync/engine_impl/model_type_registry.h ('k') | components/sync/engine_impl/sync_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9cb41202e4f30beeac6a850e57d3a3cc6da56226..72450f479134cda02b5a7c6de4a31b2a2d38057a 100644
--- a/components/sync/engine_impl/model_type_registry.cc
+++ b/components/sync/engine_impl/model_type_registry.cc
@@ -245,6 +245,16 @@ ModelTypeSet ModelTypeRegistry::GetInitialSyncEndedTypes() const {
return result;
}
+ModelTypeSet ModelTypeRegistry::GetInitialSyncDoneNonBlockingTypes() const {
+ ModelTypeSet types;
+ for (const auto& worker : model_type_workers_) {
+ if (worker->IsInitialSyncEnded()) {
+ types.Put(worker->GetModelType());
+ }
+ }
+ return types;
+}
+
UpdateHandlerMap* ModelTypeRegistry::update_handler_map() {
return &update_handler_map_;
}
« no previous file with comments | « components/sync/engine_impl/model_type_registry.h ('k') | components/sync/engine_impl/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698