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

Unified Diff: sync/api/sync_change.cc

Issue 10698141: Revert 145993 - [Sync] Add location parameter to SyncChange in Sync API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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_change.h ('k') | sync/api/sync_change_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/sync_change.cc
===================================================================
--- sync/api/sync_change.cc (revision 145994)
+++ sync/api/sync_change.cc (working copy)
@@ -11,12 +11,8 @@
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),
+SyncChange::SyncChange(SyncChangeType change_type, const SyncData& sync_data)
+ : change_type_(change_type),
sync_data_(sync_data) {
DCHECK(IsValid());
}
@@ -70,9 +66,8 @@
}
std::string SyncChange::ToString() const {
- return "{ " + location_.ToString() + ", changeType: " +
- ChangeTypeToString(change_type_) + ", syncData: " +
- sync_data_.ToString() + "}";
+ return "{ changeType: " + ChangeTypeToString(change_type_) +
+ ", syncData: " + sync_data_.ToString() + "}";
}
void PrintTo(const SyncChange& sync_change, std::ostream* os) {
« no previous file with comments | « sync/api/sync_change.h ('k') | sync/api/sync_change_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698