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

Unified Diff: components/dom_distiller/core/dom_distiller_service.cc

Issue 302163005: Change InMemoryContentStore to use MRUCache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated tests for expiry and fixed lint errors. Created 6 years, 7 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/dom_distiller/core/dom_distiller_service.cc
diff --git a/components/dom_distiller/core/dom_distiller_service.cc b/components/dom_distiller/core/dom_distiller_service.cc
index a3cbbda2474734f5f67a91be7d247d35cb565143..fd1405d02a3ff69de93b65fdaf50f1499b19bb10 100644
--- a/components/dom_distiller/core/dom_distiller_service.cc
+++ b/components/dom_distiller/core/dom_distiller_service.cc
@@ -41,7 +41,7 @@ DomDistillerService::DomDistillerService(
scoped_ptr<DistillerFactory> distiller_factory,
scoped_ptr<DistillerPageFactory> distiller_page_factory)
: store_(store.Pass()),
- content_store_(new InMemoryContentStore()),
+ content_store_(new InMemoryContentStore(kDefaultMaxNumCachedEntries)),
distiller_factory_(distiller_factory.Pass()),
distiller_page_factory_(distiller_page_factory.Pass()) {
}

Powered by Google App Engine
This is Rietveld 408576698