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

Unified Diff: net/sdch/sdch_owner.cc

Issue 1749073002: Do V8 GC ASAP if system memory is pressured (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 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: net/sdch/sdch_owner.cc
diff --git a/net/sdch/sdch_owner.cc b/net/sdch/sdch_owner.cc
index 03e268e1343ddd2f2d0e456e9fadc1270222d5b7..eb35460adf47416bde6fc184c00613827e9bb4f2 100644
--- a/net/sdch/sdch_owner.cc
+++ b/net/sdch/sdch_owner.cc
@@ -296,12 +296,12 @@ SdchOwner::SdchOwner(SdchManager* sdch_manager, URLRequestContext* context)
clock_(new base::DefaultClock),
max_total_dictionary_size_(kMaxTotalDictionarySize),
min_space_for_dictionary_fetch_(kMinSpaceForDictionaryFetch),
- memory_pressure_listener_(
+ memory_pressure_listener_(base::MemoryPressureListener::Create(
base::Bind(&SdchOwner::OnMemoryPressure,
// Because |memory_pressure_listener_| is owned by
// SdchOwner, the SdchOwner object will be available
// for the lifetime of |memory_pressure_listener_|.
- base::Unretained(this))),
+ base::Unretained(this)))),
in_memory_pref_store_(new ValueMapPrefStorage()),
external_pref_store_(nullptr),
pref_store_(in_memory_pref_store_.get()),

Powered by Google App Engine
This is Rietveld 408576698