| Index: sync/protocol/proto_enum_conversions.cc
|
| diff --git a/sync/protocol/proto_enum_conversions.cc b/sync/protocol/proto_enum_conversions.cc
|
| index d80b4e31ad955c6b6398f25e8b228aef1d6fe73c..0e3c0e548a4048db102078f3a927dff1b85ddf67 100644
|
| --- a/sync/protocol/proto_enum_conversions.cc
|
| +++ b/sync/protocol/proto_enum_conversions.cc
|
| @@ -167,6 +167,20 @@ const char* GetFaviconTypeString(
|
| return "";
|
| }
|
|
|
| +const char* PassphraseTypeString(
|
| + sync_pb::NigoriSpecifics::PassphraseType type) {
|
| + ASSERT_ENUM_BOUNDS(sync_pb::NigoriSpecifics, PassphraseType,
|
| + IMPLICIT_PASSPHRASE, CUSTOM_PASSPHRASE);
|
| + switch (type) {
|
| + ENUM_CASE(sync_pb::NigoriSpecifics, IMPLICIT_PASSPHRASE);
|
| + ENUM_CASE(sync_pb::NigoriSpecifics, KEYSTORE_PASSPHRASE);
|
| + ENUM_CASE(sync_pb::NigoriSpecifics, FROZEN_IMPLICIT_PASSPHRASE);
|
| + ENUM_CASE(sync_pb::NigoriSpecifics, CUSTOM_PASSPHRASE);
|
| + }
|
| + NOTREACHED();
|
| + return "";
|
| +}
|
| +
|
| #undef ASSERT_ENUM_BOUNDS
|
| #undef ENUM_CASE
|
|
|
|
|