Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / sync_driver / generic_change_processor_factory.cc
blob7288049c91a5c08d6f7d4eed9ebe4275aae02179
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.
5 #include "components/sync_driver/generic_change_processor_factory.h"
7 #include "components/sync_driver/generic_change_processor.h"
9 namespace sync_driver {
12 GenericChangeProcessorFactory::GenericChangeProcessorFactory() {}
14 GenericChangeProcessorFactory::~GenericChangeProcessorFactory() {}
16 scoped_ptr<GenericChangeProcessor>
17 GenericChangeProcessorFactory::CreateGenericChangeProcessor(
18 syncer::UserShare* user_share,
19 DataTypeErrorHandler* error_handler,
20 const base::WeakPtr<syncer::SyncableService>& local_service,
21 const base::WeakPtr<syncer::SyncMergeResult>& merge_result,
22 SyncApiComponentFactory* sync_factory) {
23 DCHECK(user_share);
24 return make_scoped_ptr(new GenericChangeProcessor(error_handler,
25 local_service,
26 merge_result,
27 user_share,
28 sync_factory)).Pass();
31 } // namespace sync_driver