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

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

Issue 2938133003: Split translate_event.proto AUTOMATICALLY_TRANSLATED. (Closed)
Patch Set: updates Created 3 years, 6 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 #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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 ENUM_CASE(sync_pb::TabNavigation, PASSWORD_STATE_UNKNOWN); 289 ENUM_CASE(sync_pb::TabNavigation, PASSWORD_STATE_UNKNOWN);
290 ENUM_CASE(sync_pb::TabNavigation, NO_PASSWORD_FIELD); 290 ENUM_CASE(sync_pb::TabNavigation, NO_PASSWORD_FIELD);
291 ENUM_CASE(sync_pb::TabNavigation, HAS_PASSWORD_FIELD); 291 ENUM_CASE(sync_pb::TabNavigation, HAS_PASSWORD_FIELD);
292 } 292 }
293 NOTREACHED(); 293 NOTREACHED();
294 return ""; 294 return "";
295 } 295 }
296 296
297 const char* ProtoEnumToString(sync_pb::Translation::Interaction interaction) { 297 const char* ProtoEnumToString(sync_pb::Translation::Interaction interaction) {
298 ASSERT_ENUM_BOUNDS(sync_pb::Translation, Interaction, UNKNOWN, 298 ASSERT_ENUM_BOUNDS(sync_pb::Translation, Interaction, UNKNOWN,
299 AUTOMATIC_TRANSLATION); 299 AUTO_TRANSLATION_BY_LINK);
300 switch (interaction) { 300 switch (interaction) {
301 ENUM_CASE(sync_pb::Translation, UNKNOWN); 301 ENUM_CASE(sync_pb::Translation, UNKNOWN);
302 ENUM_CASE(sync_pb::Translation, ACCEPT); 302 ENUM_CASE(sync_pb::Translation, ACCEPT);
303 ENUM_CASE(sync_pb::Translation, DECLINE); 303 ENUM_CASE(sync_pb::Translation, DECLINE);
304 ENUM_CASE(sync_pb::Translation, IGNORED); 304 ENUM_CASE(sync_pb::Translation, IGNORED);
305 ENUM_CASE(sync_pb::Translation, DISMISSED); 305 ENUM_CASE(sync_pb::Translation, DISMISSED);
306 ENUM_CASE(sync_pb::Translation, MANUAL); 306 ENUM_CASE(sync_pb::Translation, MANUAL);
307 ENUM_CASE(sync_pb::Translation, TRANSLATION_REVERTED); 307 ENUM_CASE(sync_pb::Translation, TRANSLATION_REVERTED);
308 ENUM_CASE(sync_pb::Translation, AUTOMATIC_TRANSLATION); 308 ENUM_CASE(sync_pb::Translation, AUTO_TRANSLATION_BY_PREF);
309 ENUM_CASE(sync_pb::Translation, AUTO_TRANSLATION_BY_LINK);
309 } 310 }
310 NOTREACHED(); 311 NOTREACHED();
311 return ""; 312 return "";
312 } 313 }
313 314
314 const char* ProtoEnumToString( 315 const char* ProtoEnumToString(
315 sync_pb::WalletMaskedCreditCard::WalletCardClass wallet_card_class) { 316 sync_pb::WalletMaskedCreditCard::WalletCardClass wallet_card_class) {
316 ASSERT_ENUM_BOUNDS(sync_pb::WalletMaskedCreditCard, WalletCardClass, 317 ASSERT_ENUM_BOUNDS(sync_pb::WalletMaskedCreditCard, WalletCardClass,
317 UNKNOWN_CARD_CLASS, PREPAID); 318 UNKNOWN_CARD_CLASS, PREPAID);
318 switch (wallet_card_class) { 319 switch (wallet_card_class) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 ENUM_CASE(sync_pb::WifiCredentialSpecifics, SECURITY_CLASS_PSK); 381 ENUM_CASE(sync_pb::WifiCredentialSpecifics, SECURITY_CLASS_PSK);
381 } 382 }
382 NOTREACHED(); 383 NOTREACHED();
383 return ""; 384 return "";
384 } 385 }
385 386
386 #undef ASSERT_ENUM_BOUNDS 387 #undef ASSERT_ENUM_BOUNDS
387 #undef ENUM_CASE 388 #undef ENUM_CASE
388 389
389 } // namespace syncer 390 } // namespace syncer
OLDNEW
« no previous file with comments | « components/metrics/proto/translate_event.proto ('k') | components/sync/protocol/user_event_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698