Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / components / sync_driver / generic_change_processor_factory.cc
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
3 // found in the LICENSE file.
4
5 #include "components/sync_driver/generic_change_processor_factory.h"
6
7 #include "components/sync_driver/generic_change_processor.h"
8
9 namespace browser_sync {
10
11
12 GenericChangeProcessorFactory::GenericChangeProcessorFactory() {}
13
14 GenericChangeProcessorFactory::~GenericChangeProcessorFactory() {}
15
16 scoped_ptr<GenericChangeProcessor>
17 GenericChangeProcessorFactory::CreateGenericChangeProcessor(
18       syncer::UserShare* user_share,
19       browser_sync::DataTypeErrorHandler* error_handler,
20       const base::WeakPtr<syncer::SyncableService>& local_service,
21       const base::WeakPtr<syncer::SyncMergeResult>& merge_result,
22       scoped_ptr<syncer::AttachmentService> attachment_service) {
23     DCHECK(user_share);
24     return make_scoped_ptr(new GenericChangeProcessor(
25         error_handler,
26         local_service,
27         merge_result,
28         user_share,
29         attachment_service.Pass())).Pass();
30   }
31
32 }  // namespace browser_sync