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

Unified Diff: sync/api/attachments/attachment.cc

Issue 187303006: Update sync API to support attachments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@attachmentapi
Patch Set: Rename GetAttachments to GetLocalAttachmentsForUpload. Created 6 years, 9 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/attachments/attachment.h ('k') | sync/api/attachments/attachment_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/attachments/attachment.cc
diff --git a/sync/api/attachments/attachment.cc b/sync/api/attachments/attachment.cc
index 94601abd62bd0de89eed2fc8b6c0e2e3ee69caeb..b5cfe5d621416da43d439a9ae5ba898f8c3f7039 100644
--- a/sync/api/attachments/attachment.cc
+++ b/sync/api/attachments/attachment.cc
@@ -11,16 +11,16 @@ namespace syncer {
Attachment::~Attachment() {}
// Static.
-scoped_ptr<Attachment> Attachment::Create(
+Attachment Attachment::Create(
const scoped_refptr<base::RefCountedMemory>& data) {
return CreateWithId(AttachmentId::Create(), data);
}
// Static.
-scoped_ptr<Attachment> Attachment::CreateWithId(
+Attachment Attachment::CreateWithId(
const AttachmentId& id,
const scoped_refptr<base::RefCountedMemory>& data) {
- return scoped_ptr<Attachment>(new Attachment(id, data)).Pass();
+ return Attachment(id, data);
}
const AttachmentId& Attachment::GetId() const { return id_; }
« no previous file with comments | « sync/api/attachments/attachment.h ('k') | sync/api/attachments/attachment_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698