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

Side by Side Diff: components/sync/engine/sync_string_conversions.cc

Issue 2279753003: Move definition of PasswordType enum to a separate header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@passphrase-type-enum-class
Patch Set: D2279753003 Created 4 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
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 "components/sync/engine/sync_string_conversions.h" 5 #include "components/sync/engine/sync_string_conversions.h"
6 #include "components/sync/base/passphrase_type.h"
6 7
7 #define ENUM_CASE(x) \ 8 #define ENUM_CASE(x) \
8 case x: \ 9 case x: \
9 return #x 10 return #x
10 11
11 namespace syncer { 12 namespace syncer {
12 13
13 const char* ConnectionStatusToString(ConnectionStatus status) { 14 const char* ConnectionStatusToString(ConnectionStatus status) {
14 switch (status) { 15 switch (status) {
15 ENUM_CASE(CONNECTION_OK); 16 ENUM_CASE(CONNECTION_OK);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 switch (type) { 50 switch (type) {
50 ENUM_CASE(PASSPHRASE_BOOTSTRAP_TOKEN); 51 ENUM_CASE(PASSPHRASE_BOOTSTRAP_TOKEN);
51 ENUM_CASE(KEYSTORE_BOOTSTRAP_TOKEN); 52 ENUM_CASE(KEYSTORE_BOOTSTRAP_TOKEN);
52 default: 53 default:
53 NOTREACHED(); 54 NOTREACHED();
54 return "INVALID_BOOTSTRAP_TOKEN_TYPE"; 55 return "INVALID_BOOTSTRAP_TOKEN_TYPE";
55 } 56 }
56 } 57 }
57 58
58 } // namespace syncer 59 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/sync_string_conversions.h ('k') | components/sync/test/fake_sync_encryption_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698