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

Unified Diff: components/sync/core/model_type_store_impl.h

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (Closed)
Patch Set: Rebase. Created 4 years, 2 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: components/sync/core/model_type_store_impl.h
diff --git a/components/sync/core/model_type_store_impl.h b/components/sync/core/model_type_store_impl.h
index 7c8ff21a0f556bb3d38aed09788169b8dfa61bb4..1b043853ecdfad61d072e4509fc4bd41d0fde43a 100644
--- a/components/sync/core/model_type_store_impl.h
+++ b/components/sync/core/model_type_store_impl.h
@@ -18,7 +18,7 @@ namespace leveldb {
class WriteBatch;
} // namespace leveldb
-namespace syncer_v2 {
+namespace syncer {
class ModelTypeStoreBackend;
@@ -30,7 +30,7 @@ class ModelTypeStoreImpl : public ModelTypeStore, public base::NonThreadSafe {
~ModelTypeStoreImpl() override;
static void CreateStore(
- const syncer::ModelType type,
+ const ModelType type,
const std::string& path,
scoped_refptr<base::SequencedTaskRunner> blocking_task_runner,
const InitCallback& callback);
@@ -65,15 +65,15 @@ class ModelTypeStoreImpl : public ModelTypeStore, public base::NonThreadSafe {
};
static void BackendInitDone(
- const syncer::ModelType type,
+ const ModelType type,
std::unique_ptr<Result> result,
scoped_refptr<base::SequencedTaskRunner> blocking_task_runner,
const InitCallback& callback,
scoped_refptr<ModelTypeStoreBackend> backend);
// Format prefix key for data/metadata records with |type|.
- static std::string FormatDataPrefix(const syncer::ModelType type);
- static std::string FormatMetaPrefix(const syncer::ModelType type);
+ static std::string FormatDataPrefix(const ModelType type);
+ static std::string FormatMetaPrefix(const ModelType type);
static leveldb::WriteBatch* GetLeveldbWriteBatch(WriteBatch* write_batch);
@@ -82,7 +82,7 @@ class ModelTypeStoreImpl : public ModelTypeStore, public base::NonThreadSafe {
std::string FormatMetadataKey(const std::string& id);
ModelTypeStoreImpl(
- const syncer::ModelType type,
+ const ModelType type,
scoped_refptr<ModelTypeStoreBackend> backend,
scoped_refptr<base::SequencedTaskRunner> backend_task_runner);
@@ -118,6 +118,6 @@ class ModelTypeStoreImpl : public ModelTypeStore, public base::NonThreadSafe {
base::WeakPtrFactory<ModelTypeStoreImpl> weak_ptr_factory_;
};
-} // namespace syncer_v2
+} // namespace syncer
#endif // COMPONENTS_SYNC_CORE_MODEL_TYPE_STORE_IMPL_H_
« no previous file with comments | « components/sync/core/model_type_store_backend_unittest.cc ('k') | components/sync/core/model_type_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698