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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 ENUM_CASE(sync_pb::SyncEnums, SUCCESS); | 109 ENUM_CASE(sync_pb::SyncEnums, SUCCESS); |
110 ENUM_CASE(sync_pb::SyncEnums, ACCESS_DENIED); | 110 ENUM_CASE(sync_pb::SyncEnums, ACCESS_DENIED); |
111 ENUM_CASE(sync_pb::SyncEnums, NOT_MY_BIRTHDAY); | 111 ENUM_CASE(sync_pb::SyncEnums, NOT_MY_BIRTHDAY); |
112 ENUM_CASE(sync_pb::SyncEnums, THROTTLED); | 112 ENUM_CASE(sync_pb::SyncEnums, THROTTLED); |
113 ENUM_CASE(sync_pb::SyncEnums, AUTH_EXPIRED); | 113 ENUM_CASE(sync_pb::SyncEnums, AUTH_EXPIRED); |
114 ENUM_CASE(sync_pb::SyncEnums, USER_NOT_ACTIVATED); | 114 ENUM_CASE(sync_pb::SyncEnums, USER_NOT_ACTIVATED); |
115 ENUM_CASE(sync_pb::SyncEnums, AUTH_INVALID); | 115 ENUM_CASE(sync_pb::SyncEnums, AUTH_INVALID); |
116 ENUM_CASE(sync_pb::SyncEnums, CLEAR_PENDING); | 116 ENUM_CASE(sync_pb::SyncEnums, CLEAR_PENDING); |
117 ENUM_CASE(sync_pb::SyncEnums, TRANSIENT_ERROR); | 117 ENUM_CASE(sync_pb::SyncEnums, TRANSIENT_ERROR); |
118 ENUM_CASE(sync_pb::SyncEnums, MIGRATION_DONE); | 118 ENUM_CASE(sync_pb::SyncEnums, MIGRATION_DONE); |
| 119 ENUM_CASE(sync_pb::SyncEnums, DISABLED_BY_ADMIN); |
119 ENUM_CASE(sync_pb::SyncEnums, UNKNOWN); | 120 ENUM_CASE(sync_pb::SyncEnums, UNKNOWN); |
120 } | 121 } |
121 NOTREACHED(); | 122 NOTREACHED(); |
122 return ""; | 123 return ""; |
123 } | 124 } |
124 | 125 |
125 const char* GetActionString(sync_pb::SyncEnums::Action action) { | 126 const char* GetActionString(sync_pb::SyncEnums::Action action) { |
126 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, Action, | 127 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, Action, |
127 UPGRADE_CLIENT, UNKNOWN_ACTION); | 128 UPGRADE_CLIENT, UNKNOWN_ACTION); |
128 switch (action) { | 129 switch (action) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 ENUM_CASE(sync_pb::DebugEventInfo, BOOTSTRAP_TOKEN_UPDATED); | 200 ENUM_CASE(sync_pb::DebugEventInfo, BOOTSTRAP_TOKEN_UPDATED); |
200 } | 201 } |
201 NOTREACHED(); | 202 NOTREACHED(); |
202 return ""; | 203 return ""; |
203 } | 204 } |
204 | 205 |
205 #undef ASSERT_ENUM_BOUNDS | 206 #undef ASSERT_ENUM_BOUNDS |
206 #undef ENUM_CASE | 207 #undef ENUM_CASE |
207 | 208 |
208 } // namespace syncer | 209 } // namespace syncer |
OLD | NEW |