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

Unified Diff: sync/protocol/sync_protocol_error.h

Issue 238273008: Add an action for server to send down rollback command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « sync/protocol/sync_enums.proto ('k') | sync/protocol/sync_protocol_error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/sync_protocol_error.h
diff --git a/sync/protocol/sync_protocol_error.h b/sync/protocol/sync_protocol_error.h
index be9232d21989f4dbd6469f7c1c41b002d21a2cb2..aef76501e7c85ed1e86cb8cb27e373e07ec4ce0e 100644
--- a/sync/protocol/sync_protocol_error.h
+++ b/sync/protocol/sync_protocol_error.h
@@ -42,6 +42,9 @@ enum SyncProtocolErrorType {
// An administrator disabled sync for this domain.
DISABLED_BY_ADMIN,
+ // Client told to stop syncing this device and roll back local data.
+ USER_ROLLBACK,
+
// The default value.
UNKNOWN_ERROR
};
@@ -66,6 +69,9 @@ enum ClientAction {
// settings page that account is disabled.
STOP_SYNC_FOR_DISABLED_ACCOUNT,
+ // Disable sync and roll back local model to pre-sync state.
+ DISABLE_SYNC_AND_ROLLBACK,
+
// The default. No action.
UNKNOWN_ACTION
};
« no previous file with comments | « sync/protocol/sync_enums.proto ('k') | sync/protocol/sync_protocol_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698