Index: components/dom_distiller/core/distilled_content_store.h |
diff --git a/components/dom_distiller/core/distilled_content_store.h b/components/dom_distiller/core/distilled_content_store.h |
index e83501aa048b53f6fa58fc6d63f80275016b43d7..62bbb49eb66989ca5c65467841932e0cde1d8269 100644 |
--- a/components/dom_distiller/core/distilled_content_store.h |
+++ b/components/dom_distiller/core/distilled_content_store.h |
@@ -64,7 +64,7 @@ class InMemoryContentStore : public DistilledContentStore { |
public: |
explicit CacheDeletor(InMemoryContentStore* store); |
~CacheDeletor(); |
- void operator()(const DistilledArticleProto& proto); |
+ void operator()(DistilledArticleProto* proto); |
private: |
InMemoryContentStore* store_; |
@@ -75,10 +75,9 @@ class InMemoryContentStore : public DistilledContentStore { |
void EraseUrlToIdMapping(const DistilledArticleProto& proto); |
- typedef base::MRUCacheBase<std::string, |
- DistilledArticleProto, |
- std::less<std::string>, |
- InMemoryContentStore::CacheDeletor> |
+ typedef base::MRUCache<std::string, |
+ scoped_ptr<DistilledArticleProto, CacheDeletor>> |
+ |
ContentMap; |
typedef base::hash_map<std::string, std::string> UrlMap; |