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

Unified Diff: components/offline_pages/background/request_queue_in_memory_store.cc

Issue 2379353003: [Offline pages] Applying StoreState to track RequestQueueStore state (Closed)
Patch Set: Addressing 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
Index: components/offline_pages/background/request_queue_in_memory_store.cc
diff --git a/components/offline_pages/background/request_queue_in_memory_store.cc b/components/offline_pages/background/request_queue_in_memory_store.cc
index 1eb2cab972fb54d8746d3e7ece89bc789fb851f5..f4114080a3c559cccaae9e976fe0738b8280dc7f 100644
--- a/components/offline_pages/background/request_queue_in_memory_store.cc
+++ b/components/offline_pages/background/request_queue_in_memory_store.cc
@@ -47,7 +47,7 @@ void RequestQueueInMemoryStore::UpdateRequests(
const std::vector<SavePageRequest>& requests,
const UpdateCallback& callback) {
std::unique_ptr<UpdateRequestsResult> result(
- new UpdateRequestsResult(StoreState::LOADED));
+ new UpdateRequestsResult(state()));
ItemActionStatus status;
for (const auto& request : requests) {
@@ -131,4 +131,8 @@ void RequestQueueInMemoryStore::Reset(const ResetCallback& callback) {
base::Bind(callback, true));
}
+StoreState RequestQueueInMemoryStore::state() const {
+ return StoreState::LOADED;
+}
+
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698