Chromium Code Reviews| Index: components/offline_pages/offline_page_model.cc |
| diff --git a/components/offline_pages/offline_page_model.cc b/components/offline_pages/offline_page_model.cc |
| index afb51c9a3f0aa222fcef7baa62736ca98aa0ac2b..b36a37c020d00cfa6bc5a092a71e9fa19822b93b 100644 |
| --- a/components/offline_pages/offline_page_model.cc |
| +++ b/components/offline_pages/offline_page_model.cc |
| @@ -6,6 +6,7 @@ |
| #include "base/logging.h" |
| #include "components/offline_pages/offline_page_item.h" |
| +#include "components/offline_pages/offline_page_metadata_store.h" |
| #include "url/gurl.h" |
| namespace offline_pages { |
| @@ -20,6 +21,11 @@ void OfflinePageModel::Shutdown() { |
| NOTIMPLEMENTED(); |
| } |
| +void OfflinePageModel::Initialize(scoped_ptr<OfflinePageMetadataStore> store) { |
| + DCHECK(store.get()); |
| + store_ = store.Pass(); |
|
Dmitry Titov
2015/06/09 21:58:05
This looks like part of a constructor now. Can it
fgorski
2015/06/09 22:11:13
Done.
|
| +} |
| + |
| void OfflinePageModel::SavePageOffline(const GURL& url) { |
| NOTIMPLEMENTED(); |
| } |
| @@ -29,4 +35,8 @@ std::vector<OfflinePageItem> OfflinePageModel::GetAllOfflinePages() { |
| return std::vector<OfflinePageItem>(); |
| } |
| +OfflinePageMetadataStore* OfflinePageModel::GetStoreForTesting() { |
| + return store_.get(); |
| +} |
| + |
| } // namespace offline_pages |