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

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

Issue 2241583003: Creating protobuf for reading list sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 months 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 // 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
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
OLDNEW
« no previous file with comments | « components/sync/protocol/proto_enum_conversions.h ('k') | components/sync/protocol/proto_value_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698