| Index: components/sync/driver/change_processor.cc
|
| diff --git a/components/sync/driver/change_processor.cc b/components/sync/driver/change_processor.cc
|
| index c0d7915ad9ad8d43f16374311d399568efd14097..116b170c782da4a65f9dc34b2608d12a39920dda 100644
|
| --- a/components/sync/driver/change_processor.cc
|
| +++ b/components/sync/driver/change_processor.cc
|
| @@ -4,10 +4,13 @@
|
|
|
| #include "components/sync/driver/change_processor.h"
|
|
|
| +#include <utility>
|
| +
|
| namespace sync_driver {
|
|
|
| -ChangeProcessor::ChangeProcessor(syncer::DataTypeErrorHandler* error_handler)
|
| - : error_handler_(error_handler), share_handle_(NULL) {}
|
| +ChangeProcessor::ChangeProcessor(
|
| + std::unique_ptr<syncer::DataTypeErrorHandler> error_handler)
|
| + : error_handler_(std::move(error_handler)), share_handle_(NULL) {}
|
|
|
| ChangeProcessor::~ChangeProcessor() {}
|
|
|
| @@ -21,7 +24,7 @@ void ChangeProcessor::Start(syncer::UserShare* share_handle) {
|
| void ChangeProcessor::CommitChangesFromSyncModel() {}
|
|
|
| syncer::DataTypeErrorHandler* ChangeProcessor::error_handler() const {
|
| - return error_handler_;
|
| + return error_handler_.get();
|
| }
|
|
|
| syncer::UserShare* ChangeProcessor::share_handle() const {
|
|
|