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

Side by Side Diff: components/sync/driver/glue/browser_thread_model_worker.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698