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/change_processor.h" 6 7namespace browser_sync { 8 9ChangeProcessor::ChangeProcessor(DataTypeErrorHandler* error_handler) 10 : error_handler_(error_handler), 11 share_handle_(NULL) {} 12 13ChangeProcessor::~ChangeProcessor() { 14} 15 16void ChangeProcessor::Start(syncer::UserShare* share_handle) { 17 DCHECK(!share_handle_); 18 share_handle_ = share_handle; 19 StartImpl(); 20} 21 22// Not implemented by default. 23void ChangeProcessor::CommitChangesFromSyncModel() {} 24 25DataTypeErrorHandler* ChangeProcessor::error_handler() const { 26 return error_handler_; 27} 28 29syncer::UserShare* ChangeProcessor::share_handle() const { 30 return share_handle_; 31} 32 33} // namespace browser_sync 34