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

Unified Diff: sync/internal_api/model_type_store_backend.cc

Issue 1421833004: [Sync] Add ModelTypeStore implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@USS.StoreInterface
Patch Set: Created 5 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: sync/internal_api/model_type_store_backend.cc
diff --git a/sync/internal_api/model_type_store_backend.cc b/sync/internal_api/model_type_store_backend.cc
new file mode 100644
index 0000000000000000000000000000000000000000..dc4cf1f694739604c4c79e2f390e53588dbb2a52
--- /dev/null
+++ b/sync/internal_api/model_type_store_backend.cc
@@ -0,0 +1,24 @@
+// Copyright 2015 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/model_type_store_backend.h"
+
+namespace syncer_v2 {
+
+ModelTypeStoreBackend::ModelTypeStoreBackend() {
+ // ModelTypeStoreBackend is used on different thread from the one where it is
+ // created.
+ DetachFromThread();
+}
+
+ModelTypeStoreBackend::~ModelTypeStoreBackend() {
+ DCHECK(CalledOnValidThread());
+}
+
+ModelTypeStore::Result ModelTypeStoreBackend::Init() {
+ DCHECK(CalledOnValidThread());
+ return ModelTypeStore::Result::SUCCESS;
+}
+
+} // namespace syncer_v2

Powered by Google App Engine
This is Rietveld 408576698