| Index: components/sync/test/engine/fake_model_worker.cc
|
| diff --git a/components/sync/test/engine/fake_model_worker.cc b/components/sync/test/engine/fake_model_worker.cc
|
| index c696005097602c6f52fb85739328138701729aca..966e0a4f5a1d3b298d6fc867aef6bf012f4ccd10 100644
|
| --- a/components/sync/test/engine/fake_model_worker.cc
|
| +++ b/components/sync/test/engine/fake_model_worker.cc
|
| @@ -4,7 +4,7 @@
|
|
|
| #include "components/sync/test/engine/fake_model_worker.h"
|
|
|
| -#include "base/callback.h"
|
| +#include <utility>
|
|
|
| namespace syncer {
|
|
|
| @@ -18,11 +18,10 @@ FakeModelWorker::~FakeModelWorker() {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| }
|
|
|
| -SyncerError FakeModelWorker::DoWorkAndWaitUntilDoneImpl(
|
| - const WorkCallback& work) {
|
| +void FakeModelWorker::ScheduleWork(base::OnceClosure work) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| // Simply do the work on the current thread.
|
| - return work.Run();
|
| + std::move(work).Run();
|
| }
|
|
|
| ModelSafeGroup FakeModelWorker::GetModelSafeGroup() {
|
|
|