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

Unified Diff: components/offline_pages/offline_page_test_store.cc

Issue 2329283002: [Offline pages] OPM SQL store: moving load to constructor, updating read to GetOfflinePages (Closed)
Patch Set: Addressing CR feedback Created 4 years, 3 months 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/offline_pages/offline_page_test_store.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 617387975cbf7ddc0f85ead666bb0c189d2b7816..ceb2f76c00ce19128eefd3a97a4fd44ae27708ab 100644
--- a/components/offline_pages/offline_page_test_store.cc
+++ b/components/offline_pages/offline_page_test_store.cc
@@ -22,7 +22,7 @@ OfflinePageTestStore::OfflinePageTestStore(
OfflinePageTestStore::~OfflinePageTestStore() {}
-void OfflinePageTestStore::Load(const LoadCallback& callback) {
+void OfflinePageTestStore::GetOfflinePages(const LoadCallback& callback) {
OfflinePageMetadataStore::LoadStatus load_status;
if (scenario_ == TestScenario::LOAD_FAILED) {
load_status = OfflinePageMetadataStore::STORE_LOAD_FAILED;
@@ -68,6 +68,10 @@ void OfflinePageTestStore::Reset(const ResetCallback& callback) {
task_runner_->PostTask(FROM_HERE, base::Bind(callback, true));
}
+OfflinePageMetadataStore::StoreState OfflinePageTestStore::state() const {
+ return LOADED;
+}
+
void OfflinePageTestStore::UpdateLastAccessTime(
int64_t offline_id,
const base::Time& last_access_time) {
« no previous file with comments | « components/offline_pages/offline_page_test_store.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698