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

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

Issue 14655009: Client changes for disabled dasher account (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 7 years, 7 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
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 ENUM_CASE(sync_pb::SyncEnums, SUCCESS); 126 ENUM_CASE(sync_pb::SyncEnums, SUCCESS);
127 ENUM_CASE(sync_pb::SyncEnums, ACCESS_DENIED); 127 ENUM_CASE(sync_pb::SyncEnums, ACCESS_DENIED);
128 ENUM_CASE(sync_pb::SyncEnums, NOT_MY_BIRTHDAY); 128 ENUM_CASE(sync_pb::SyncEnums, NOT_MY_BIRTHDAY);
129 ENUM_CASE(sync_pb::SyncEnums, THROTTLED); 129 ENUM_CASE(sync_pb::SyncEnums, THROTTLED);
130 ENUM_CASE(sync_pb::SyncEnums, AUTH_EXPIRED); 130 ENUM_CASE(sync_pb::SyncEnums, AUTH_EXPIRED);
131 ENUM_CASE(sync_pb::SyncEnums, USER_NOT_ACTIVATED); 131 ENUM_CASE(sync_pb::SyncEnums, USER_NOT_ACTIVATED);
132 ENUM_CASE(sync_pb::SyncEnums, AUTH_INVALID); 132 ENUM_CASE(sync_pb::SyncEnums, AUTH_INVALID);
133 ENUM_CASE(sync_pb::SyncEnums, CLEAR_PENDING); 133 ENUM_CASE(sync_pb::SyncEnums, CLEAR_PENDING);
134 ENUM_CASE(sync_pb::SyncEnums, TRANSIENT_ERROR); 134 ENUM_CASE(sync_pb::SyncEnums, TRANSIENT_ERROR);
135 ENUM_CASE(sync_pb::SyncEnums, MIGRATION_DONE); 135 ENUM_CASE(sync_pb::SyncEnums, MIGRATION_DONE);
136 ENUM_CASE(sync_pb::SyncEnums, DISABLED_BY_ADMIN);
136 ENUM_CASE(sync_pb::SyncEnums, UNKNOWN); 137 ENUM_CASE(sync_pb::SyncEnums, UNKNOWN);
137 } 138 }
138 NOTREACHED(); 139 NOTREACHED();
139 return ""; 140 return "";
140 } 141 }
141 142
142 const char* GetActionString(sync_pb::SyncEnums::Action action) { 143 const char* GetActionString(sync_pb::SyncEnums::Action action) {
143 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, Action, 144 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, Action,
144 UPGRADE_CLIENT, UNKNOWN_ACTION); 145 UPGRADE_CLIENT, UNKNOWN_ACTION);
145 switch (action) { 146 switch (action) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 ENUM_CASE(sync_pb::DebugEventInfo, BOOTSTRAP_TOKEN_UPDATED); 217 ENUM_CASE(sync_pb::DebugEventInfo, BOOTSTRAP_TOKEN_UPDATED);
217 } 218 }
218 NOTREACHED(); 219 NOTREACHED();
219 return ""; 220 return "";
220 } 221 }
221 222
222 #undef ASSERT_ENUM_BOUNDS 223 #undef ASSERT_ENUM_BOUNDS
223 #undef ENUM_CASE 224 #undef ENUM_CASE
224 225
225 } // namespace syncer 226 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698