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

Unified Diff: components/sync/api/entity_change.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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
« no previous file with comments | « components/sync/api/entity_change.h ('k') | components/sync/api/entity_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/entity_change.cc
diff --git a/components/sync/api/entity_change.cc b/components/sync/api/entity_change.cc
deleted file mode 100644
index 936cefa462d35b10789b58e280c8c063748472cf..0000000000000000000000000000000000000000
--- a/components/sync/api/entity_change.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// 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 "components/sync/api/entity_change.h"
-
-namespace syncer {
-
-// static
-EntityChange EntityChange::CreateAdd(const std::string& storage_key,
- EntityDataPtr data) {
- return EntityChange(storage_key, ACTION_ADD, data);
-}
-
-// static
-EntityChange EntityChange::CreateUpdate(const std::string& storage_key,
- EntityDataPtr data) {
- return EntityChange(storage_key, ACTION_UPDATE, data);
-}
-
-// static
-EntityChange EntityChange::CreateDelete(const std::string& storage_key) {
- return EntityChange(storage_key, ACTION_DELETE, EntityDataPtr());
-}
-
-EntityChange::EntityChange(const std::string& storage_key,
- ChangeType type,
- EntityDataPtr data)
- : storage_key_(storage_key), type_(type), data_(data) {}
-
-EntityChange::EntityChange(const EntityChange& other) = default;
-
-EntityChange::~EntityChange() {}
-
-} // namespace syncer
« no previous file with comments | « components/sync/api/entity_change.h ('k') | components/sync/api/entity_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698