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

Unified Diff: sync/syncable/directory_backing_store.cc

Issue 265853004: Revert of Keep track of which attachments are referenced by which sync entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/syncable/directory.cc ('k') | sync/syncable/directory_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/directory_backing_store.cc
diff --git a/sync/syncable/directory_backing_store.cc b/sync/syncable/directory_backing_store.cc
index ec28a53d661a47fcc9baaa99774301c01d953701..e466548b172ee9c039af93aa1d51f837bb63a017 100644
--- a/sync/syncable/directory_backing_store.cc
+++ b/sync/syncable/directory_backing_store.cc
@@ -70,11 +70,6 @@
entry.ref(static_cast<UniquePositionField>(i)).SerializeToString(&temp);
statement->BindBlob(index++, temp.data(), temp.length());
}
- for (; i < ATTACHMENT_METADATA_FIELDS_END; ++i) {
- std::string temp;
- entry.ref(static_cast<AttachmentMetadataField>(i)).SerializeToString(&temp);
- statement->BindBlob(index++, temp.data(), temp.length());
- }
}
// The caller owns the returned EntryKernel*. Assumes the statement currently
@@ -118,10 +113,6 @@
kernel->mutable_ref(static_cast<UniquePositionField>(i)) =
UniquePosition::FromProto(proto);
- }
- for (; i < ATTACHMENT_METADATA_FIELDS_END; ++i) {
- kernel->mutable_ref(static_cast<AttachmentMetadataField>(i)).ParseFromArray(
- statement->ColumnBlob(i), statement->ColumnByteLength(i));
}
return kernel.Pass();
}
« no previous file with comments | « sync/syncable/directory.cc ('k') | sync/syncable/directory_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698