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_; } |