OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_driver/data_type_manager.h" | 5 #include "components/sync_driver/data_type_manager.h" |
6 | 6 |
7 namespace sync_driver { | 7 namespace sync_driver { |
8 | 8 |
9 DataTypeManager::ConfigureResult::ConfigureResult() | 9 DataTypeManager::ConfigureResult::ConfigureResult() |
10 : status(UNKNOWN) { | 10 : status(UNKNOWN) { |
11 } | 11 } |
12 | 12 |
13 DataTypeManager::ConfigureResult::ConfigureResult( | 13 DataTypeManager::ConfigureResult::ConfigureResult( |
14 ConfigureStatus status, | 14 ConfigureStatus status, |
15 syncer::ModelTypeSet requested_types) | 15 syncer::ModelTypeSet requested_types) |
16 : status(status), requested_types(requested_types) { | 16 : status(status), requested_types(requested_types) { |
17 } | 17 } |
18 | 18 |
| 19 DataTypeManager::ConfigureResult::ConfigureResult( |
| 20 const ConfigureResult& other) = default; |
| 21 |
19 DataTypeManager::ConfigureResult::~ConfigureResult() { | 22 DataTypeManager::ConfigureResult::~ConfigureResult() { |
20 } | 23 } |
21 | 24 |
22 // Static. | 25 // Static. |
23 std::string DataTypeManager::ConfigureStatusToString(ConfigureStatus status) { | 26 std::string DataTypeManager::ConfigureStatusToString(ConfigureStatus status) { |
24 switch (status) { | 27 switch (status) { |
25 case OK: | 28 case OK: |
26 return "Ok"; | 29 return "Ok"; |
27 case ABORTED: | 30 case ABORTED: |
28 return "Aborted"; | 31 return "Aborted"; |
29 case UNRECOVERABLE_ERROR: | 32 case UNRECOVERABLE_ERROR: |
30 return "Unrecoverable Error"; | 33 return "Unrecoverable Error"; |
31 case UNKNOWN: | 34 case UNKNOWN: |
32 NOTREACHED(); | 35 NOTREACHED(); |
33 return std::string(); | 36 return std::string(); |
34 } | 37 } |
35 return std::string(); | 38 return std::string(); |
36 } | 39 } |
37 | 40 |
38 } // namespace sync_driver | 41 } // namespace sync_driver |
OLD | NEW |