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/generic_change_processor_factory.h" | 5 #include "components/sync_driver/generic_change_processor_factory.h" |
6 | 6 |
7 #include "components/sync_driver/generic_change_processor.h" | 7 #include "components/sync_driver/generic_change_processor.h" |
8 | 8 |
9 namespace browser_sync { | 9 namespace sync_driver { |
10 | 10 |
11 | 11 |
12 GenericChangeProcessorFactory::GenericChangeProcessorFactory() {} | 12 GenericChangeProcessorFactory::GenericChangeProcessorFactory() {} |
13 | 13 |
14 GenericChangeProcessorFactory::~GenericChangeProcessorFactory() {} | 14 GenericChangeProcessorFactory::~GenericChangeProcessorFactory() {} |
15 | 15 |
16 scoped_ptr<GenericChangeProcessor> | 16 scoped_ptr<GenericChangeProcessor> |
17 GenericChangeProcessorFactory::CreateGenericChangeProcessor( | 17 GenericChangeProcessorFactory::CreateGenericChangeProcessor( |
18 syncer::UserShare* user_share, | 18 syncer::UserShare* user_share, |
19 browser_sync::DataTypeErrorHandler* error_handler, | 19 DataTypeErrorHandler* error_handler, |
20 const base::WeakPtr<syncer::SyncableService>& local_service, | 20 const base::WeakPtr<syncer::SyncableService>& local_service, |
21 const base::WeakPtr<syncer::SyncMergeResult>& merge_result, | 21 const base::WeakPtr<syncer::SyncMergeResult>& merge_result, |
22 SyncApiComponentFactory* sync_factory) { | 22 SyncApiComponentFactory* sync_factory) { |
23 DCHECK(user_share); | 23 DCHECK(user_share); |
24 return make_scoped_ptr(new GenericChangeProcessor(error_handler, | 24 return make_scoped_ptr(new GenericChangeProcessor(error_handler, |
25 local_service, | 25 local_service, |
26 merge_result, | 26 merge_result, |
27 user_share, | 27 user_share, |
28 sync_factory)).Pass(); | 28 sync_factory)).Pass(); |
29 } | 29 } |
30 | 30 |
31 } // namespace browser_sync | 31 } // namespace sync_driver |
OLD | NEW |