| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |