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

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

Issue 2782573002: [Sync] Refactor ModelSafeWorker::DoWorkAndWaitUntilDone() to avoid code duplication. (Closed)
Patch Set: self-review Created 3 years, 8 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/history/core/browser/BUILD.gn ('k') | components/history/core/browser/history_model_worker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6421c64d3a198d1080cc5ccb00a04d219dbcea03..f72b00afbc57605659b3ab1381c13722c0668646 100644
--- a/components/history/core/browser/history_model_worker.h
+++ b/components/history/core/browser/history_model_worker.h
@@ -32,13 +32,11 @@ class HistoryModelWorker : public syncer::ModelSafeWorker {
syncer::ModelSafeGroup GetModelSafeGroup() override;
bool IsOnModelThread() override;
- protected:
- syncer::SyncerError DoWorkAndWaitUntilDoneImpl(
- const syncer::WorkCallback& work) override;
-
private:
~HistoryModelWorker() override;
+ void ScheduleWork(base::OnceClosure work) override;
+
const base::WeakPtr<history::HistoryService> history_service_;
// A reference to the UI thread's task runner.
« no previous file with comments | « components/history/core/browser/BUILD.gn ('k') | components/history/core/browser/history_model_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698