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

Unified Diff: content/browser/memory/memory_pressure_controller_impl.cc

Issue 2469123003: Call MessageFilter clean up handlers even for pending filters (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « no previous file | ipc/ipc_channel_proxy.cc » ('j') | ipc/ipc_channel_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_pressure_controller_impl.cc
diff --git a/content/browser/memory/memory_pressure_controller_impl.cc b/content/browser/memory/memory_pressure_controller_impl.cc
index 1026783e4682f5af800654bf6f1ac3bd118a7d57..13d5cfd2d372ff0d86aa68c340ba368db5f0218b 100644
--- a/content/browser/memory/memory_pressure_controller_impl.cc
+++ b/content/browser/memory/memory_pressure_controller_impl.cc
@@ -39,7 +39,8 @@ void MemoryPressureControllerImpl::OnMemoryMessageFilterRemoved(
// Remove the message filter from the set of all memory message filters,
// ensuring that it was there beforehand.
auto it = memory_message_filters_.find(filter->process_host());
- DCHECK(it != memory_message_filters_.end());
+ if (it == memory_message_filters_.end())
+ return;
DCHECK_EQ(filter, it->second);
memory_message_filters_.erase(it);
}
« no previous file with comments | « no previous file | ipc/ipc_channel_proxy.cc » ('j') | ipc/ipc_channel_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698