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

Unified Diff: trunk/src/components/sync_driver/failed_data_types_handler.h

Issue 469803004: Revert 289115 "Revert 288464 "[Sync] Cleanup datatype configurat..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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: trunk/src/components/sync_driver/failed_data_types_handler.h
===================================================================
--- trunk/src/components/sync_driver/failed_data_types_handler.h (revision 289352)
+++ trunk/src/components/sync_driver/failed_data_types_handler.h (working copy)
@@ -61,12 +61,18 @@
// Returns the types that cannot be configured due to not being ready.
syncer::ModelTypeSet GetUnreadyErrorTypes() const;
+ // Returns the types that triggered the unrecoverable error.
+ syncer::ModelTypeSet GetUnrecoverableErrorTypes() const;
+
+ // Returns the current unrecoverable error, if there is one.
+ syncer::SyncError GetUnrecoverableError() const;
+
private:
// Returns true if there are any types with errors.
bool AnyFailedDataType() const;
- // List of data types that failed due to unrecoverable errors and should
- // be disabled.
+ // The current unrecoverable errors. Only one unrecoverable error can be
+ // active at a time, but it may apply to more than one type.
TypeErrorMap unrecoverable_errors_;
// List of data types that failed due to runtime errors and should be

Powered by Google App Engine
This is Rietveld 408576698