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