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

Unified Diff: sync/api/sync_merge_result.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 | « sync/api/sync_merge_result.h ('k') | 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: sync/api/sync_merge_result.cc
diff --git a/sync/api/sync_merge_result.cc b/sync/api/sync_merge_result.cc
deleted file mode 100644
index f5607c7a1698cd17869272f77c7df914725a8e1e..0000000000000000000000000000000000000000
--- a/sync/api/sync_merge_result.cc
+++ /dev/null
@@ -1,90 +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 <stdint.h>
-
-#include "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 | « sync/api/sync_merge_result.h ('k') | sync/api/sync_merge_result_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698