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

Unified Diff: components/sync/driver/data_type_manager.h

Issue 2649133012: [Sync] Calculate active types and track catch up in DTMI not PSS. (Closed)
Patch Set: Fix ProfileSyncServiceTest. Created 3 years, 11 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/driver/data_type_manager.h
diff --git a/components/sync/driver/data_type_manager.h b/components/sync/driver/data_type_manager.h
index b3d271e1a1b57ee9eb250eb7e9b84b71cb6cb0cd..91c65c58d5fc17668f32a646f79dd005371d6bf0 100644
--- a/components/sync/driver/data_type_manager.h
+++ b/components/sync/driver/data_type_manager.h
@@ -50,6 +50,7 @@ class DataTypeManager {
ConfigureStatus status;
ModelTypeSet requested_types;
DataTypeStatusTable data_type_status_table;
+ bool was_catch_up_configure = false;
};
virtual ~DataTypeManager() {}
@@ -88,6 +89,12 @@ class DataTypeManager {
// stopped.
virtual void Stop() = 0;
+ // Get the set of current active data types (those chosen or configured by the
+ // user which have not also encountered a runtime error). Note that during
+ // configuration, this will the the empty set. Once the configuration
+ // completes the set will be updated.
+ virtual ModelTypeSet GetActiveDataTypes() const = 0;
+
// The current state of the data type manager.
virtual State state() const = 0;
};

Powered by Google App Engine
This is Rietveld 408576698