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

Unified Diff: components/history/core/browser/history_model_worker.h

Issue 2489433002: [Sync] Move thread checking into the ModelSafeWorker interface. (Closed)
Patch Set: Improve/add comments. Created 4 years, 1 month 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/history/core/browser/history_model_worker.h
diff --git a/components/history/core/browser/history_model_worker.h b/components/history/core/browser/history_model_worker.h
index e98b03962f8c8c98702921094e5fcd46b46caa2f..6421c64d3a198d1080cc5ccb00a04d219dbcea03 100644
--- a/components/history/core/browser/history_model_worker.h
+++ b/components/history/core/browser/history_model_worker.h
@@ -28,8 +28,9 @@ class HistoryModelWorker : public syncer::ModelSafeWorker {
const base::WeakPtr<history::HistoryService>& history_service,
const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread);
- // syncer::ModelSafeWorker implementation. Called on syncapi SyncerThread.
+ // syncer::ModelSafeWorker implementation.
syncer::ModelSafeGroup GetModelSafeGroup() override;
+ bool IsOnModelThread() override;
protected:
syncer::SyncerError DoWorkAndWaitUntilDoneImpl(

Powered by Google App Engine
This is Rietveld 408576698