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

Unified Diff: components/sync/driver/generic_change_processor.h

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
Index: components/sync/driver/generic_change_processor.h
diff --git a/components/sync/driver/generic_change_processor.h b/components/sync/driver/generic_change_processor.h
index 67af8ad7234cb84eb9c030940f48d432aba0a8e8..36c08aa24732ca9c5782ecb0e3210c3cc7659094 100644
--- a/components/sync/driver/generic_change_processor.h
+++ b/components/sync/driver/generic_change_processor.h
@@ -16,6 +16,7 @@
#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "components/sync/api/attachments/attachment_store.h"
+#include "components/sync/api/data_type_error_handler.h"
#include "components/sync/api/sync_change_processor.h"
#include "components/sync/api/sync_merge_result.h"
#include "components/sync/core/attachments/attachment_service.h"
@@ -23,7 +24,6 @@
#include "components/sync/driver/change_processor.h"
namespace syncer {
-class DataTypeErrorHandler;
class SyncData;
class SyncableService;
class WriteNode;
@@ -55,7 +55,7 @@ class GenericChangeProcessor : public ChangeProcessor,
// attachments.
GenericChangeProcessor(
syncer::ModelType type,
- syncer::DataTypeErrorHandler* error_handler,
+ std::unique_ptr<syncer::DataTypeErrorHandler> error_handler,
const base::WeakPtr<syncer::SyncableService>& local_service,
const base::WeakPtr<syncer::SyncMergeResult>& merge_result,
syncer::UserShare* user_share,
« no previous file with comments | « components/sync/driver/frontend_data_type_controller_unittest.cc ('k') | components/sync/driver/generic_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698