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

Unified Diff: sync/internal_api/public/engine/control_model_worker.cc

Issue 10825137: FYI: Control Data + Per-Device Metadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add PER_USER_METADATA, refactor some encryption code Created 8 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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/engine/control_model_worker.cc
diff --git a/sync/internal_api/public/engine/control_model_worker.cc b/sync/internal_api/public/engine/control_model_worker.cc
new file mode 100644
index 0000000000000000000000000000000000000000..78f848c944467144d46538ff08167083c3050dd6
--- /dev/null
+++ b/sync/internal_api/public/engine/control_model_worker.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "sync/internal_api/public/engine/control_model_worker.h"
+
+#include "base/message_loop.h"
+
+namespace syncer {
+
+ControlModelWorker::ControlModelWorker(const MessageLoop* sync_loop)
+ : sync_loop_(sync_loop) {}
+
+ControlModelWorker::~ControlModelWorker() {
+}
+
+SyncerError ControlModelWorker::DoWorkAndWaitUntilDone(
+ const WorkCallback& work) {
+ DCHECK_EQ(MessageLoop::current(), sync_loop_);
+ // Simply do the work on the current thread.
+ return work.Run();
+}
+
+ModelSafeGroup ControlModelWorker::GetModelSafeGroup() {
+ return GROUP_CONTROL;
+}
+
+} // namespace syncer
+

Powered by Google App Engine
This is Rietveld 408576698