summaryrefslogtreecommitdiffstats
path: root/components/sync_driver/generic_change_processor_factory.cc
blob: 8d9596b7b8e089f3fa935019c26446674146fd5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/sync_driver/generic_change_processor_factory.h"

#include "components/sync_driver/generic_change_processor.h"

namespace browser_sync {


GenericChangeProcessorFactory::GenericChangeProcessorFactory() {}

GenericChangeProcessorFactory::~GenericChangeProcessorFactory() {}

scoped_ptr<GenericChangeProcessor>
GenericChangeProcessorFactory::CreateGenericChangeProcessor(
      syncer::UserShare* user_share,
      browser_sync::DataTypeErrorHandler* error_handler,
      const base::WeakPtr<syncer::SyncableService>& local_service,
      const base::WeakPtr<syncer::SyncMergeResult>& merge_result,
      scoped_ptr<syncer::AttachmentService> attachment_service) {
    DCHECK(user_share);
    return make_scoped_ptr(new GenericChangeProcessor(
        error_handler,
        local_service,
        merge_result,
        user_share,
        attachment_service.Pass())).Pass();
  }

}  // namespace browser_sync