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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2669323002: Add ChildMemoryCoordinator::PurgeMemory() (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « content/child/memory/child_memory_coordinator_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 45678d19a939b0bec6864ddc6aca43a1d66fc21f..fcd2444be29c2ade42b7a40228bc2712d0d65e86 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1670,10 +1670,7 @@ void RenderThreadImpl::OnProcessPurgeAndSuspend() {
return;
if (base::FeatureList::IsEnabled(features::kPurgeAndSuspend)) {
- // TODO(tasak): After enabling MemoryCoordinator, remove this Notify
- // and follow MemoryCoordinator's request.
- base::MemoryCoordinatorClientRegistry::GetInstance()->Notify(
- base::MemoryState::SUSPENDED);
+ memory_coordinator_->PurgeMemory();
Wez 2017/02/15 19:51:58 Isn't |memory_coordinator_| only initialized if Me
}
// Since purging is not a synchronous task (e.g. v8 GC, oilpan GC, ...),
// we need to wait until the task is finished. So wait 15 seconds and
« no previous file with comments | « content/child/memory/child_memory_coordinator_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698