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

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

Issue 2782573002: [Sync] Refactor ModelSafeWorker::DoWorkAndWaitUntilDone() to avoid code duplication. (Closed)
Patch Set: fix-test-error Created 3 years, 9 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/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..ca183000c81d494a031463c1823e44e7094f877c 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::Closure work) override;
skym 2017/04/06 00:34:54 In the past we've been passing base::Callbacks to
fdoray 2017/04/06 18:10:55 Closure is a simple class that holds a reference t
+
const base::WeakPtr<history::HistoryService> history_service_;
// A reference to the UI thread's task runner.

Powered by Google App Engine
This is Rietveld 408576698