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

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

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