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

Side by Side Diff: components/sync/driver/data_type_manager.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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 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
OLDNEW
« no previous file with comments | « components/sync/driver/data_type_manager.h ('k') | components/sync/driver/data_type_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698