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

Unified Diff: components/sync/api/sync_change.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 | « components/sync/api/sync_change.h ('k') | components/sync/api/sync_change_processor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/sync_change.cc
diff --git a/sync/api/sync_change.cc b/components/sync/api/sync_change.cc
similarity index 79%
rename from sync/api/sync_change.cc
rename to components/sync/api/sync_change.cc
index 32b4129a1d859ec64b130a76f3f5d331f832bcff..b2eb608e9d47a13cf3afd6f736c018082e569574 100644
--- a/sync/api/sync_change.cc
+++ b/components/sync/api/sync_change.cc
@@ -2,22 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/api/sync_change.h"
+#include "components/sync/api/sync_change.h"
#include <ostream>
namespace syncer {
-SyncChange::SyncChange() : change_type_(ACTION_INVALID) {
-}
+SyncChange::SyncChange() : change_type_(ACTION_INVALID) {}
-SyncChange::SyncChange(
- const tracked_objects::Location& from_here,
- SyncChangeType change_type,
- const SyncData& sync_data)
- : location_(from_here),
- change_type_(change_type),
- sync_data_(sync_data) {
+SyncChange::SyncChange(const tracked_objects::Location& from_here,
+ SyncChangeType change_type,
+ const SyncData& sync_data)
+ : location_(from_here), change_type_(change_type), sync_data_(sync_data) {
DCHECK(IsValid());
}
@@ -75,8 +71,8 @@ std::string SyncChange::ChangeTypeToString(SyncChangeType change_type) {
std::string SyncChange::ToString() const {
return "{ " + location_.ToString() + ", changeType: " +
- ChangeTypeToString(change_type_) + ", syncData: " +
- sync_data_.ToString() + "}";
+ ChangeTypeToString(change_type_) + ", syncData: " +
+ sync_data_.ToString() + "}";
}
void PrintTo(const SyncChange& sync_change, std::ostream* os) {
« no previous file with comments | « components/sync/api/sync_change.h ('k') | components/sync/api/sync_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698