Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: components/sync/driver/change_processor.cc

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/driver/change_processor.h ('k') | components/sync/driver/change_processor_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « components/sync/driver/change_processor.h ('k') | components/sync/driver/change_processor_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698