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

Unified Diff: sync/protocol/proto_enum_conversions.cc

Issue 10916036: [Sync] Implement keystore migration support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698