Index: components/dom_distiller/core/article_entry.cc |
diff --git a/components/dom_distiller/core/article_entry.cc b/components/dom_distiller/core/article_entry.cc |
index 1550caf2b8039fbd73a7f37eb4756548ad88b782..9ed9d7e4f09a107e3980663c64ef4053c2b442bd 100644 |
--- a/components/dom_distiller/core/article_entry.cc |
+++ b/components/dom_distiller/core/article_entry.cc |
@@ -5,6 +5,7 @@ |
#include "components/dom_distiller/core/article_entry.h" |
#include "base/logging.h" |
+#include "components/dom_distiller/core/article_attachments_data.h" |
#include "sync/api/sync_change.h" |
using sync_pb::EntitySpecifics; |
@@ -63,7 +64,8 @@ std::string GetEntryIdFromSyncData(const syncer::SyncData& data) { |
syncer::SyncData CreateLocalData(const ArticleEntry& entry) { |
EntitySpecifics specifics = SpecificsFromEntry(entry); |
const std::string& entry_id = entry.entry_id(); |
- return syncer::SyncData::CreateLocalData(entry_id, entry_id, specifics); |
+ return syncer::SyncData::CreateLocalDataWithAttachments( |
+ entry_id, entry_id, specifics, GetAttachmentIds(entry.attachments())); |
} |
} // namespace dom_distiller |