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

Unified Diff: components/sync/api/sync_merge_result.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/sync_merge_result.h ('k') | components/sync/api/sync_merge_result_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/sync_merge_result.cc
diff --git a/components/sync/api/sync_merge_result.cc b/components/sync/api/sync_merge_result.cc
deleted file mode 100644
index 04efb7514a3c759d4bd57c761ef103ccf4513062..0000000000000000000000000000000000000000
--- a/components/sync/api/sync_merge_result.cc
+++ /dev/null
@@ -1,86 +0,0 @@
-// 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 "components/sync/api/sync_merge_result.h"
-
-namespace syncer {
-
-SyncMergeResult::SyncMergeResult(ModelType type)
- : model_type_(type),
- num_items_before_association_(0),
- num_items_after_association_(0),
- num_items_added_(0),
- num_items_deleted_(0),
- num_items_modified_(0),
- pre_association_version_(0) {}
-
-SyncMergeResult::SyncMergeResult(const SyncMergeResult& other) = default;
-
-SyncMergeResult::~SyncMergeResult() {}
-
-// Setters.
-void SyncMergeResult::set_error(SyncError error) {
- DCHECK(!error.IsSet() || model_type_ == error.model_type());
- error_ = error;
-}
-
-void SyncMergeResult::set_num_items_before_association(
- int num_items_before_association) {
- num_items_before_association_ = num_items_before_association;
-}
-
-void SyncMergeResult::set_num_items_after_association(
- int num_items_after_association) {
- num_items_after_association_ = num_items_after_association;
-}
-
-void SyncMergeResult::set_num_items_added(int num_items_added) {
- num_items_added_ = num_items_added;
-}
-
-void SyncMergeResult::set_num_items_deleted(int num_items_deleted) {
- num_items_deleted_ = num_items_deleted;
-}
-
-void SyncMergeResult::set_num_items_modified(int num_items_modified) {
- num_items_modified_ = num_items_modified;
-}
-
-void SyncMergeResult::set_pre_association_version(int64_t version) {
- pre_association_version_ = version;
-}
-
-ModelType SyncMergeResult::model_type() const {
- return model_type_;
-}
-
-SyncError SyncMergeResult::error() const {
- return error_;
-}
-
-int SyncMergeResult::num_items_before_association() const {
- return num_items_before_association_;
-}
-
-int SyncMergeResult::num_items_after_association() const {
- return num_items_after_association_;
-}
-
-int SyncMergeResult::num_items_added() const {
- return num_items_added_;
-}
-
-int SyncMergeResult::num_items_deleted() const {
- return num_items_deleted_;
-}
-
-int SyncMergeResult::num_items_modified() const {
- return num_items_modified_;
-}
-
-int64_t SyncMergeResult::pre_association_version() const {
- return pre_association_version_;
-}
-
-} // namespace syncer
« no previous file with comments | « components/sync/api/sync_merge_result.h ('k') | components/sync/api/sync_merge_result_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698