| Index: components/offline_pages/offline_page_test_store.cc
|
| diff --git a/components/offline_pages/offline_page_test_store.cc b/components/offline_pages/offline_page_test_store.cc
|
| index 755191ce2b70565b5c773cdc999454b0e5833b36..425b8b3545b081a9254d36deea5b7afe3466508d 100644
|
| --- a/components/offline_pages/offline_page_test_store.cc
|
| +++ b/components/offline_pages/offline_page_test_store.cc
|
| @@ -30,6 +30,7 @@ void OfflinePageTestStore::Load(const LoadCallback& callback) {
|
| } else {
|
| load_status = OfflinePageMetadataStore::LOAD_SUCCEEDED;
|
| }
|
| + LOG(INFO) << "Size of offline pages " << offline_pages_.size();
|
| task_runner_->PostTask(FROM_HERE,
|
| base::Bind(callback, load_status, GetAllPages()));
|
| }
|
| @@ -83,4 +84,12 @@ std::vector<OfflinePageItem> OfflinePageTestStore::GetAllPages() const {
|
| return offline_pages;
|
| }
|
|
|
| +void OfflinePageTestStore::SetStoreState(
|
| + const std::vector<OfflinePageItem>& offline_pages) {
|
| + offline_pages_.clear();
|
| + for (const auto& offline_page : offline_pages) {
|
| + offline_pages_[offline_page.bookmark_id] = offline_page;
|
| + }
|
| +}
|
| +
|
| } // namespace offline_pages
|
|
|