OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_driver/glue/browser_thread_model_worker.h" | 5 #include "components/sync/driver/glue/browser_thread_model_worker.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 | 10 |
11 using base::SingleThreadTaskRunner; | 11 using base::SingleThreadTaskRunner; |
12 using base::WaitableEvent; | 12 using base::WaitableEvent; |
13 | 13 |
14 namespace browser_sync { | 14 namespace browser_sync { |
15 | 15 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 const syncer::WorkCallback& work, | 59 const syncer::WorkCallback& work, |
60 WaitableEvent* done, | 60 WaitableEvent* done, |
61 syncer::SyncerError* error) { | 61 syncer::SyncerError* error) { |
62 DCHECK(runner_->BelongsToCurrentThread()); | 62 DCHECK(runner_->BelongsToCurrentThread()); |
63 if (!IsStopped()) | 63 if (!IsStopped()) |
64 *error = work.Run(); | 64 *error = work.Run(); |
65 done->Signal(); | 65 done->Signal(); |
66 } | 66 } |
67 | 67 |
68 } // namespace browser_sync | 68 } // namespace browser_sync |
OLD | NEW |