| 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 #include "components/sync/protocol/proto_enum_conversions.h" | 5 #include "components/sync/protocol/proto_enum_conversions.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace syncer { | 9 namespace syncer { |
| 10 | 10 |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 ENUM_CASE(sync_pb::TabNavigation, NO_PASSWORD_FIELD); | 328 ENUM_CASE(sync_pb::TabNavigation, NO_PASSWORD_FIELD); |
| 329 ENUM_CASE(sync_pb::TabNavigation, HAS_PASSWORD_FIELD); | 329 ENUM_CASE(sync_pb::TabNavigation, HAS_PASSWORD_FIELD); |
| 330 } | 330 } |
| 331 NOTREACHED(); | 331 NOTREACHED(); |
| 332 return ""; | 332 return ""; |
| 333 } | 333 } |
| 334 | 334 |
| 335 const char* ProtoEnumToString( | 335 const char* ProtoEnumToString( |
| 336 sync_pb::ReadingListSpecifics::ReadingListEntryStatus status) { | 336 sync_pb::ReadingListSpecifics::ReadingListEntryStatus status) { |
| 337 ASSERT_ENUM_BOUNDS(sync_pb::ReadingListSpecifics, ReadingListEntryStatus, | 337 ASSERT_ENUM_BOUNDS(sync_pb::ReadingListSpecifics, ReadingListEntryStatus, |
| 338 UNREAD, READ); | 338 UNREAD, UNSEEN); |
| 339 switch (status) { | 339 switch (status) { |
| 340 ENUM_CASE(sync_pb::ReadingListSpecifics, UNREAD); | 340 ENUM_CASE(sync_pb::ReadingListSpecifics, UNREAD); |
| 341 ENUM_CASE(sync_pb::ReadingListSpecifics, READ); | 341 ENUM_CASE(sync_pb::ReadingListSpecifics, READ); |
| 342 ENUM_CASE(sync_pb::ReadingListSpecifics, UNSEEN); |
| 342 } | 343 } |
| 343 NOTREACHED(); | 344 NOTREACHED(); |
| 344 return ""; | 345 return ""; |
| 345 } | 346 } |
| 346 | 347 |
| 347 #undef ASSERT_ENUM_BOUNDS | 348 #undef ASSERT_ENUM_BOUNDS |
| 348 #undef ENUM_CASE | 349 #undef ENUM_CASE |
| 349 | 350 |
| 350 } // namespace syncer | 351 } // namespace syncer |
| OLD | NEW |