Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / sync_driver / change_processor.cc
blob9ba5ca8c07e9e3dab930b5390688b30c02b8e819
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/change_processor.h"
7 namespace sync_driver {
9 ChangeProcessor::ChangeProcessor(DataTypeErrorHandler* error_handler)
10 : error_handler_(error_handler),
11 share_handle_(NULL) {}
13 ChangeProcessor::~ChangeProcessor() {
16 void ChangeProcessor::Start(syncer::UserShare* share_handle) {
17 DCHECK(!share_handle_);
18 share_handle_ = share_handle;
19 StartImpl();
22 // Not implemented by default.
23 void ChangeProcessor::CommitChangesFromSyncModel() {}
25 DataTypeErrorHandler* ChangeProcessor::error_handler() const {
26 return error_handler_;
29 syncer::UserShare* ChangeProcessor::share_handle() const {
30 return share_handle_;
33 } // namespace sync_driver