Commit 739bee92 authored by Anna Malova's avatar Anna Malova Committed by Commit Bot

Convert SSLClientSessionCache to use BindRepeating.

MemoryPressureListener expects MemoryPressureCallback which is
RepeatingCallback.

Bug: 1007815
Change-Id: Icc64607ac64e55819f14dc9d873c66b5f6c6e240
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089735
Commit-Queue: Matt Menke <mmenke@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#747369}
parent f6f00395
...@@ -53,8 +53,9 @@ SSLClientSessionCache::SSLClientSessionCache(const Config& config) ...@@ -53,8 +53,9 @@ SSLClientSessionCache::SSLClientSessionCache(const Config& config)
config_(config), config_(config),
cache_(config.max_entries), cache_(config.max_entries),
lookups_since_flush_(0) { lookups_since_flush_(0) {
memory_pressure_listener_.reset(new base::MemoryPressureListener(base::Bind( memory_pressure_listener_.reset(
&SSLClientSessionCache::OnMemoryPressure, base::Unretained(this)))); new base::MemoryPressureListener(base::BindRepeating(
&SSLClientSessionCache::OnMemoryPressure, base::Unretained(this))));
} }
SSLClientSessionCache::~SSLClientSessionCache() { SSLClientSessionCache::~SSLClientSessionCache() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment