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

Side by Side Diff: components/sync/test/engine/fake_model_worker.cc

Issue 2942773002: Task Scheduler API migration: change BrowserThreadModelWorker to SequencedModelWorker (Closed)
Patch Set: Updated more comments to reflect thread -> sequence migration. Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/test/engine/fake_model_worker.h" 5 #include "components/sync/test/engine/fake_model_worker.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 namespace syncer { 9 namespace syncer {
10 10
(...skipping 11 matching lines...) Expand all
22 DCHECK(thread_checker_.CalledOnValidThread()); 22 DCHECK(thread_checker_.CalledOnValidThread());
23 // Simply do the work on the current thread. 23 // Simply do the work on the current thread.
24 std::move(work).Run(); 24 std::move(work).Run();
25 } 25 }
26 26
27 ModelSafeGroup FakeModelWorker::GetModelSafeGroup() { 27 ModelSafeGroup FakeModelWorker::GetModelSafeGroup() {
28 DCHECK(thread_checker_.CalledOnValidThread()); 28 DCHECK(thread_checker_.CalledOnValidThread());
29 return group_; 29 return group_;
30 } 30 }
31 31
32 bool FakeModelWorker::IsOnModelThread() { 32 bool FakeModelWorker::IsOnModelSequence() {
33 return thread_checker_.CalledOnValidThread(); 33 return thread_checker_.CalledOnValidThread();
34 } 34 }
35 35
36 } // namespace syncer 36 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/test/engine/fake_model_worker.h ('k') | ios/chrome/browser/sync/ios_chrome_sync_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698