| 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..e1fdbc0b21b5b35e7e26e699986d7da28777eb89 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* PassphraseStateString(
|
| + sync_pb::NigoriSpecifics::PassphraseState state) {
|
| + ASSERT_ENUM_BOUNDS(sync_pb::NigoriSpecifics, PassphraseState,
|
| + IMPLICIT_PASSPHRASE, CUSTOM_PASSPHRASE);
|
| + switch (state) {
|
| + 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
|
|
|
|
|