| Index: components/offline_pages/downloads/download_ui_adapter.cc
|
| diff --git a/components/offline_pages/downloads/download_ui_adapter.cc b/components/offline_pages/downloads/download_ui_adapter.cc
|
| index b38cc591fd391634e3008faae1b90b1b9d5b424e..d9d85b3fc37119a681b746fdcae78fdba6d471ec 100644
|
| --- a/components/offline_pages/downloads/download_ui_adapter.cc
|
| +++ b/components/offline_pages/downloads/download_ui_adapter.cc
|
| @@ -21,8 +21,7 @@ const char kDownloadUIAdapterKey[] = "download-ui-adapter";
|
|
|
| DownloadUIAdapter::ItemInfo::ItemInfo(const OfflinePageItem& page)
|
| : ui_item(base::MakeUnique<DownloadUIItem>(page)),
|
| - offline_id(page.offline_id),
|
| - offline_url(page.GetOfflineURL()) {}
|
| + offline_id(page.offline_id) {}
|
|
|
| DownloadUIAdapter::ItemInfo::~ItemInfo() {}
|
|
|
| @@ -130,16 +129,6 @@ void DownloadUIAdapter::DeleteItem(const std::string& guid) {
|
| weak_ptr_factory_.GetWeakPtr()));
|
| }
|
|
|
| -GURL DownloadUIAdapter::GetOfflineUrlByGuid(
|
| - const std::string& guid) const {
|
| - // TODO(dimich): when requests are also in the cache, filter them out.
|
| - // Requests do not yet have offline URL.
|
| - DownloadUIItems::const_iterator it = items_.find(guid);
|
| - if (it != items_.end())
|
| - return it->second->offline_url;
|
| - return GURL();
|
| -}
|
| -
|
| // Note that several LoadCache calls may be issued before the async GetAllPages
|
| // comes back.
|
| void DownloadUIAdapter::LoadCache() {
|
|
|