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

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

Issue 2811813002: [Offline Pages] Set up the initial prefetching service. (Closed)
Patch Set: Move observer and prefetch service factory to components. 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)
+ .SetIsRemovedOnCacheReset(true)
+ .SetExpirePeriod(base::TimeDelta::FromDays(30))
+ .Build()));
// Fallback policy.
policies_.insert(std::make_pair(

Powered by Google App Engine
This is Rietveld 408576698