Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Side by Side Diff: components/sync/protocol/proto_enum_conversions.cc

Issue 2557443003: Add Unseen state to Reading List Entry (Closed)
Patch Set: feedback Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/reading_list/ios/reading_list_store_unittest.mm ('k') | components/sync/protocol/reading_list_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698