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

Unified Diff: components/sync/driver/glue/ui_model_worker.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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/sync/driver/glue/ui_model_worker.cc
diff --git a/components/sync/driver/glue/ui_model_worker.cc b/components/sync/driver/glue/ui_model_worker.cc
index 69245abfb0c857a7dcbc905f07e75265144491c8..d9fccbe61902496e33a2e11d0b74c2aef8b7eba7 100644
--- a/components/sync/driver/glue/ui_model_worker.cc
+++ b/components/sync/driver/glue/ui_model_worker.cc
@@ -4,12 +4,12 @@
#include "components/sync/driver/glue/ui_model_worker.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
-#include "base/message_loop/message_loop.h"
+#include "base/callback.h"
#include "base/synchronization/waitable_event.h"
-#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
-#include "base/threading/thread_restrictions.h"
#include "components/sync/base/scoped_event_signal.h"
namespace syncer {
@@ -26,14 +26,8 @@ void CallDoWorkAndSignalEvent(const WorkCallback& work,
} // namespace
UIModelWorker::UIModelWorker(
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
- WorkerLoopDestructionObserver* observer)
- : ModelSafeWorker(observer), ui_thread_(ui_thread) {}
-
-void UIModelWorker::RegisterForLoopDestruction() {
- CHECK(ui_thread_->BelongsToCurrentThread());
- SetWorkingLoopToCurrent();
-}
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread)
+ : ui_thread_(std::move(ui_thread)) {}
SyncerError UIModelWorker::DoWorkAndWaitUntilDoneImpl(
const WorkCallback& work) {
« no previous file with comments | « components/sync/driver/glue/ui_model_worker.h ('k') | components/sync/driver/glue/ui_model_worker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698