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

Unified Diff: components/offline_pages/core/client_policy_controller.cc

Issue 2811813002: [Offline Pages] Set up the initial prefetching service. (Closed)
Patch Set: Implement invalidating a single ContentSuggestion. Created 3 years, 8 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/core/client_policy_controller.cc
diff --git a/components/offline_pages/core/client_policy_controller.cc b/components/offline_pages/core/client_policy_controller.cc
index c2db05186411b5d96974f87364d9400e21f298ce..b3381999e0f3b765a6343d245a9b99297757a6ee 100644
--- a/components/offline_pages/core/client_policy_controller.cc
+++ b/components/offline_pages/core/client_policy_controller.cc
@@ -54,6 +54,14 @@ ClientPolicyController::ClientPolicyController() {
kUnlimitedPages)
.SetIsSupportedByDownload(true)
.Build()));
+ policies_.insert(std::make_pair(
+ kSuggestedArticlesNamespace,
+ OfflinePageClientPolicyBuilder(kSuggestedArticlesNamespace,
+ LifetimeType::TEMPORARY, kUnlimitedPages,
+ kUnlimitedPages)
carlosk 2017/04/18 00:36:09 Shouldn't the limit of pages per URL be 1?
dewittj 2017/04/18 18:20:25 I don't think we should enforce this here. I thin
carlosk 2017/04/18 20:17:22 OK. We can change this later on should we decide t
+ .SetIsRemovedOnCacheReset(true)
+ .SetExpirePeriod(base::TimeDelta::FromDays(30))
+ .Build()));
// Fallback policy.
policies_.insert(std::make_pair(

Powered by Google App Engine
This is Rietveld 408576698