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

Side by Side Diff: sync/protocol/proto_enum_conversions.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/public/util/syncer_error.cc ('k') | sync/protocol/sync_enums.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Keep this file in sync with the .proto files in this directory. 5 // Keep this file in sync with the .proto files in this directory.
6 6
7 #include "sync/protocol/proto_enum_conversions.h" 7 #include "sync/protocol/proto_enum_conversions.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 ENUM_CASE(sync_pb::SyncEnums, ACCESS_DENIED); 143 ENUM_CASE(sync_pb::SyncEnums, ACCESS_DENIED);
144 ENUM_CASE(sync_pb::SyncEnums, NOT_MY_BIRTHDAY); 144 ENUM_CASE(sync_pb::SyncEnums, NOT_MY_BIRTHDAY);
145 ENUM_CASE(sync_pb::SyncEnums, THROTTLED); 145 ENUM_CASE(sync_pb::SyncEnums, THROTTLED);
146 ENUM_CASE(sync_pb::SyncEnums, AUTH_EXPIRED); 146 ENUM_CASE(sync_pb::SyncEnums, AUTH_EXPIRED);
147 ENUM_CASE(sync_pb::SyncEnums, USER_NOT_ACTIVATED); 147 ENUM_CASE(sync_pb::SyncEnums, USER_NOT_ACTIVATED);
148 ENUM_CASE(sync_pb::SyncEnums, AUTH_INVALID); 148 ENUM_CASE(sync_pb::SyncEnums, AUTH_INVALID);
149 ENUM_CASE(sync_pb::SyncEnums, CLEAR_PENDING); 149 ENUM_CASE(sync_pb::SyncEnums, CLEAR_PENDING);
150 ENUM_CASE(sync_pb::SyncEnums, TRANSIENT_ERROR); 150 ENUM_CASE(sync_pb::SyncEnums, TRANSIENT_ERROR);
151 ENUM_CASE(sync_pb::SyncEnums, MIGRATION_DONE); 151 ENUM_CASE(sync_pb::SyncEnums, MIGRATION_DONE);
152 ENUM_CASE(sync_pb::SyncEnums, DISABLED_BY_ADMIN); 152 ENUM_CASE(sync_pb::SyncEnums, DISABLED_BY_ADMIN);
153 ENUM_CASE(sync_pb::SyncEnums, USER_ROLLBACK);
153 ENUM_CASE(sync_pb::SyncEnums, UNKNOWN); 154 ENUM_CASE(sync_pb::SyncEnums, UNKNOWN);
154 } 155 }
155 NOTREACHED(); 156 NOTREACHED();
156 return ""; 157 return "";
157 } 158 }
158 159
159 const char* GetActionString(sync_pb::SyncEnums::Action action) { 160 const char* GetActionString(sync_pb::SyncEnums::Action action) {
160 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, Action, 161 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, Action,
161 UPGRADE_CLIENT, UNKNOWN_ACTION); 162 UPGRADE_CLIENT, UNKNOWN_ACTION);
162 switch (action) { 163 switch (action) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 ENUM_CASE(sync_pb::TabNavigation, STATE_BLOCKED); 258 ENUM_CASE(sync_pb::TabNavigation, STATE_BLOCKED);
258 } 259 }
259 NOTREACHED(); 260 NOTREACHED();
260 return ""; 261 return "";
261 } 262 }
262 263
263 #undef ASSERT_ENUM_BOUNDS 264 #undef ASSERT_ENUM_BOUNDS
264 #undef ENUM_CASE 265 #undef ENUM_CASE
265 266
266 } // namespace syncer 267 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/util/syncer_error.cc ('k') | sync/protocol/sync_enums.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698