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

Side by Side Diff: chrome/browser/sync/glue/data_type_manager.cc

Issue 10662035: [Sync] Put everything in sync/api into csync namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 8 years, 6 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 | Annotate | Revision Log
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 "chrome/browser/sync/glue/data_type_manager.h" 5 #include "chrome/browser/sync/glue/data_type_manager.h"
6 6
7 namespace browser_sync { 7 namespace browser_sync {
8 8
9 DataTypeManager::ConfigureResult::ConfigureResult() 9 DataTypeManager::ConfigureResult::ConfigureResult()
10 : status(UNKNOWN) {} 10 : status(UNKNOWN) {}
11 11
12 DataTypeManager::ConfigureResult::ConfigureResult(ConfigureStatus status, 12 DataTypeManager::ConfigureResult::ConfigureResult(ConfigureStatus status,
13 TypeSet requested_types) 13 TypeSet requested_types)
14 : status(status), 14 : status(status),
15 requested_types(requested_types) { 15 requested_types(requested_types) {
16 DCHECK_EQ(OK, status); 16 DCHECK_EQ(OK, status);
17 } 17 }
18 18
19 DataTypeManager::ConfigureResult::ConfigureResult( 19 DataTypeManager::ConfigureResult::ConfigureResult(
20 ConfigureStatus status, 20 ConfigureStatus status,
21 TypeSet requested_types, 21 TypeSet requested_types,
22 const std::list<SyncError>& failed_data_types, 22 const std::list<csync::SyncError>& failed_data_types,
23 syncable::ModelTypeSet waiting_to_start) 23 syncable::ModelTypeSet waiting_to_start)
24 : status(status), 24 : status(status),
25 requested_types(requested_types), 25 requested_types(requested_types),
26 failed_data_types(failed_data_types), 26 failed_data_types(failed_data_types),
27 waiting_to_start(waiting_to_start) { 27 waiting_to_start(waiting_to_start) {
28 if (!failed_data_types.empty()) { 28 if (!failed_data_types.empty()) {
29 DCHECK_NE(OK, status); 29 DCHECK_NE(OK, status);
30 } 30 }
31 } 31 }
32 32
(...skipping 11 matching lines...) Expand all
44 return "Unrecoverable Error"; 44 return "Unrecoverable Error";
45 case PARTIAL_SUCCESS: 45 case PARTIAL_SUCCESS:
46 return "Partial Success"; 46 return "Partial Success";
47 default: 47 default:
48 NOTREACHED(); 48 NOTREACHED();
49 return std::string(); 49 return std::string();
50 } 50 }
51 } 51 }
52 52
53 } // namespace browser_sync 53 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager.h ('k') | chrome/browser/sync/glue/data_type_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698