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

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: Rebase Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/protocol/proto_enum_conversions.h ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/proto_enum_conversions.cc
diff --git a/sync/protocol/proto_enum_conversions.cc b/sync/protocol/proto_enum_conversions.cc
index 42d8ab54530f8ffeb13dbd1bfc2f9d5bfa69326c..2287b83a2b787679b824f1a329b0c2f701d10e3e 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
« no previous file with comments | « sync/protocol/proto_enum_conversions.h ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698