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

Unified Diff: components/sync_driver/failed_data_types_handler.h

Issue 420633002: [Sync] Cleanup datatype configuration error handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile 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: components/sync_driver/failed_data_types_handler.h
diff --git a/components/sync_driver/failed_data_types_handler.h b/components/sync_driver/failed_data_types_handler.h
index 93b6fae6ac6eb0532f4291fecc0516a6fe6c2fe0..985e75923dfb9dc22141e2581711a7c2d68f0906 100644
--- a/components/sync_driver/failed_data_types_handler.h
+++ b/components/sync_driver/failed_data_types_handler.h
@@ -61,12 +61,18 @@ class FailedDataTypesHandler {
// 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
« no previous file with comments | « components/sync_driver/data_type_manager_impl_unittest.cc ('k') | components/sync_driver/failed_data_types_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698