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 syncer { | 7 namespace sync_driver { |
8 | 8 |
9 DataTypeManager::ConfigureResult::ConfigureResult() : status(UNKNOWN) {} | 9 DataTypeManager::ConfigureResult::ConfigureResult() : status(UNKNOWN) {} |
10 | 10 |
11 DataTypeManager::ConfigureResult::ConfigureResult(ConfigureStatus status, | 11 DataTypeManager::ConfigureResult::ConfigureResult( |
12 ModelTypeSet requested_types) | 12 ConfigureStatus status, |
| 13 syncer::ModelTypeSet requested_types) |
13 : status(status), requested_types(requested_types) {} | 14 : status(status), requested_types(requested_types) {} |
14 | 15 |
15 DataTypeManager::ConfigureResult::ConfigureResult( | 16 DataTypeManager::ConfigureResult::ConfigureResult( |
16 const ConfigureResult& other) = default; | 17 const ConfigureResult& other) = default; |
17 | 18 |
18 DataTypeManager::ConfigureResult::~ConfigureResult() {} | 19 DataTypeManager::ConfigureResult::~ConfigureResult() {} |
19 | 20 |
20 // Static. | 21 // Static. |
21 std::string DataTypeManager::ConfigureStatusToString(ConfigureStatus status) { | 22 std::string DataTypeManager::ConfigureStatusToString(ConfigureStatus status) { |
22 switch (status) { | 23 switch (status) { |
23 case OK: | 24 case OK: |
24 return "Ok"; | 25 return "Ok"; |
25 case ABORTED: | 26 case ABORTED: |
26 return "Aborted"; | 27 return "Aborted"; |
27 case UNRECOVERABLE_ERROR: | 28 case UNRECOVERABLE_ERROR: |
28 return "Unrecoverable Error"; | 29 return "Unrecoverable Error"; |
29 case UNKNOWN: | 30 case UNKNOWN: |
30 NOTREACHED(); | 31 NOTREACHED(); |
31 return std::string(); | 32 return std::string(); |
32 } | 33 } |
33 return std::string(); | 34 return std::string(); |
34 } | 35 } |
35 | 36 |
36 } // namespace syncer | 37 } // namespace sync_driver |
OLD | NEW |