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

Unified Diff: components/dom_distiller/core/article_entry.cc

Issue 717793007: Add attachments support to DomDistillerStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « components/dom_distiller/core/article_entry.h ('k') | components/dom_distiller/core/dom_distiller_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « components/dom_distiller/core/article_entry.h ('k') | components/dom_distiller/core/dom_distiller_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698