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

Unified Diff: sync/api/sync_error.h

Issue 312163004: [Sync] Add support for dynamically enabling/disabling types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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: sync/api/sync_error.h
diff --git a/sync/api/sync_error.h b/sync/api/sync_error.h
index 306ed83fc72421b1bef249dfe04d6b2d4cc9b7ac..f6ffa87f3132c8c795bb60aeb00e6e81542c26b0 100644
--- a/sync/api/sync_error.h
+++ b/sync/api/sync_error.h
@@ -29,13 +29,17 @@ class SYNC_EXPORT SyncError {
enum ErrorType {
UNSET, // No error.
UNRECOVERABLE_ERROR, // An unrecoverable runtime error was encountered, and
- // sync should be disabled completely.
+ // sync should be disabled and purged completely.
DATATYPE_ERROR, // A datatype error was encountered, and the datatype
- // should be disabled.
+ // should be disabled and purged completely. Note that
+ // datatype errors may be reset, triggering a
+ // re-enable.
PERSISTENCE_ERROR, // A persistence error was detected, and the
// datataype should be associated after a sync update.
CRYPTO_ERROR, // A cryptographer error was detected, and the
// datatype should be associated after it is resolved.
+ UNREADY_ERROR, // The type is not ready to start yet, so should be
stanisc 2014/06/10 21:21:42 I didn't quite understand whether this could be us
Nicolas Zea 2014/06/19 00:04:22 I'm open to other names, but note that the type be
+ // neither purged nor enabled until it is ready.
};
// Default constructor refers to "no error", and IsSet() will return false.

Powered by Google App Engine
This is Rietveld 408576698