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

Unified Diff: components/offline_pages/client_policy_controller.cc

Issue 2208293002: [Offline Pages] Add new download namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update according to review comments Created 4 years, 4 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/client_policy_controller.cc
diff --git a/components/offline_pages/client_policy_controller.cc b/components/offline_pages/client_policy_controller.cc
index 3289eac183bb2fa3f0265e6518a4a11a211448b2..2d03bec73451a3a55e1062e26530bfc5e3e35593 100644
--- a/components/offline_pages/client_policy_controller.cc
+++ b/components/offline_pages/client_policy_controller.cc
@@ -33,6 +33,13 @@ ClientPolicyController::ClientPolicyController() {
MakePolicy(kCCTNamespace, LifetimeType::TEMPORARY,
base::TimeDelta::FromDays(2), kUnlimitedPages, 1)));
+ policies_.insert(std::make_pair(
+ kDownloadNamespace, MakePolicy(kDownloadNamespace,
+ LifetimeType::PERSISTENT,
+ base::TimeDelta::FromDays(0),
+ kUnlimitedPages,
+ kUnlimitedPages)));
+
// Fallback policy.
policies_.insert(std::make_pair(
kDefaultNamespace, MakePolicy(kDefaultNamespace, LifetimeType::TEMPORARY,
« no previous file with comments | « components/offline_pages/client_namespace_constants.cc ('k') | components/offline_pages/client_policy_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698