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

Unified Diff: content/common/host_discardable_shared_memory_manager.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: content/common/host_discardable_shared_memory_manager.cc
diff --git a/content/common/host_discardable_shared_memory_manager.cc b/content/common/host_discardable_shared_memory_manager.cc
index 2168e0a59279293872281b06a0dc40156503ec9f..5856d3c9b386f2df84a914e08d4b376d507604b2 100644
--- a/content/common/host_discardable_shared_memory_manager.cc
+++ b/content/common/host_discardable_shared_memory_manager.cc
@@ -165,7 +165,7 @@ HostDiscardableSharedMemoryManager::MemorySegment::~MemorySegment() {
HostDiscardableSharedMemoryManager::HostDiscardableSharedMemoryManager()
: memory_limit_(GetDefaultMemoryLimit()),
bytes_allocated_(0),
- memory_pressure_listener_(new base::MemoryPressureListener(
+ memory_pressure_listener_(base::MemoryPressureListener::Create(
base::Bind(&HostDiscardableSharedMemoryManager::OnMemoryPressure,
base::Unretained(this)))),
// Current thread might not have a task runner in tests.

Powered by Google App Engine
This is Rietveld 408576698