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

Side by Side Diff: sync/internal_api/public/util/sync_string_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 unified diff | Download patch | Annotate | Revision Log
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 "sync/internal_api/public/util/sync_string_conversions.h" 5 #include "sync/internal_api/public/util/sync_string_conversions.h"
6 6
7 #define ENUM_CASE(x) case x: return #x 7 #define ENUM_CASE(x) case x: return #x
8 8
9 namespace syncer { 9 namespace syncer {
10 10
(...skipping 14 matching lines...) Expand all
25 switch (reason) { 25 switch (reason) {
26 ENUM_CASE(REASON_PASSPHRASE_NOT_REQUIRED); 26 ENUM_CASE(REASON_PASSPHRASE_NOT_REQUIRED);
27 ENUM_CASE(REASON_ENCRYPTION); 27 ENUM_CASE(REASON_ENCRYPTION);
28 ENUM_CASE(REASON_DECRYPTION); 28 ENUM_CASE(REASON_DECRYPTION);
29 default: 29 default:
30 NOTREACHED(); 30 NOTREACHED();
31 return "INVALID_REASON"; 31 return "INVALID_REASON";
32 } 32 }
33 } 33 }
34 34
35 const char* PassphraseStateToString(PassphraseState state) { 35 const char* PassphraseTypeToString(PassphraseType type) {
36 switch (state) { 36 switch (type) {
37 ENUM_CASE(IMPLICIT_PASSPHRASE); 37 ENUM_CASE(IMPLICIT_PASSPHRASE);
38 ENUM_CASE(KEYSTORE_PASSPHRASE); 38 ENUM_CASE(KEYSTORE_PASSPHRASE);
39 ENUM_CASE(FROZEN_IMPLICIT_PASSPHRASE); 39 ENUM_CASE(FROZEN_IMPLICIT_PASSPHRASE);
40 ENUM_CASE(CUSTOM_PASSPHRASE); 40 ENUM_CASE(CUSTOM_PASSPHRASE);
41 default: 41 default:
42 NOTREACHED(); 42 NOTREACHED();
43 return "INVALID_PASSPHRASE_STATE"; 43 return "INVALID_PASSPHRASE_TYPE";
44 } 44 }
45 } 45 }
46 46
47 const char* BootstrapTokenTypeToString(BootstrapTokenType type) { 47 const char* BootstrapTokenTypeToString(BootstrapTokenType type) {
48 switch (type) { 48 switch (type) {
49 ENUM_CASE(PASSPHRASE_BOOTSTRAP_TOKEN); 49 ENUM_CASE(PASSPHRASE_BOOTSTRAP_TOKEN);
50 ENUM_CASE(KEYSTORE_BOOTSTRAP_TOKEN); 50 ENUM_CASE(KEYSTORE_BOOTSTRAP_TOKEN);
51 default: 51 default:
52 NOTREACHED(); 52 NOTREACHED();
53 return "INVALID_BOOTSTRAP_TOKEN_TYPE"; 53 return "INVALID_BOOTSTRAP_TOKEN_TYPE";
54 } 54 }
55 } 55 }
56 56
57 } // namespace syncer 57 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/util/sync_string_conversions.h ('k') | sync/internal_api/sync_encryption_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698