| Index: components/dom_distiller/core/dom_distiller_service.cc
|
| diff --git a/components/dom_distiller/core/dom_distiller_service.cc b/components/dom_distiller/core/dom_distiller_service.cc
|
| index 983452d0fb483775cfbf14355b3f173388b87ec0..98be75416dace32e414996c78d006cd512655cf4 100644
|
| --- a/components/dom_distiller/core/dom_distiller_service.cc
|
| +++ b/components/dom_distiller/core/dom_distiller_service.cc
|
| @@ -108,6 +108,18 @@ const std::string DomDistillerService::AddToList(
|
| return task_tracker->GetEntryId();
|
| }
|
|
|
| +bool DomDistillerService::HasEntry(const std::string& entry_id) {
|
| + return store_->GetEntryById(entry_id, NULL);
|
| +}
|
| +
|
| +std::string DomDistillerService::GetUrlForEntry(const std::string& entry_id) {
|
| + ArticleEntry entry;
|
| + if (store_->GetEntryById(entry_id, &entry)) {
|
| + return entry.pages().Get(0).url();
|
| + }
|
| + return "";
|
| +}
|
| +
|
| std::vector<ArticleEntry> DomDistillerService::GetEntries() const {
|
| return store_->GetEntries();
|
| }
|
|
|