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

Unified Diff: sync/internal_api/attachments/on_disk_attachment_store.cc

Issue 982883002: [Sync] Add size and crc32c to AttachmentId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix argument evaluation order bug. Created 5 years, 10 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
Index: sync/internal_api/attachments/on_disk_attachment_store.cc
diff --git a/sync/internal_api/attachments/on_disk_attachment_store.cc b/sync/internal_api/attachments/on_disk_attachment_store.cc
index 7b715e03b7e7b254ecf6db283f285d218be9808f..f4c10e3b1af3451827c2a510725842d4387ea2e1 100644
--- a/sync/internal_api/attachments/on_disk_attachment_store.cc
+++ b/sync/internal_api/attachments/on_disk_attachment_store.cc
@@ -321,7 +321,7 @@ scoped_ptr<Attachment> OnDiskAttachmentStore::ReadSingleAttachment(
return attachment.Pass();
}
attachment.reset(
- new Attachment(Attachment::CreateFromParts(attachment_id, data, crc32c)));
+ new Attachment(Attachment::CreateFromParts(attachment_id, data)));
pavely 2015/03/07 00:07:25 Maybe check that attachment_id's crc matches the o
maniscalco 2015/03/09 17:09:00 Good idea. Done with test case to verify.
return attachment.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698