OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |