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

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

Issue 2681643003: Expose DiscardTab() to MemoryCoordiantor (Closed)
Patch Set: fix compile error on android 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
Index: content/browser/memory/memory_coordinator_impl.cc
diff --git a/content/browser/memory/memory_coordinator_impl.cc b/content/browser/memory/memory_coordinator_impl.cc
index b8e34d268839ce75d46405c4582413ce4c4be557..05f3472a1b55efba8a0375efee8d9542a222562c 100644
--- a/content/browser/memory/memory_coordinator_impl.cc
+++ b/content/browser/memory/memory_coordinator_impl.cc
@@ -339,6 +339,11 @@ bool MemoryCoordinatorImpl::ChangeStateIfNeeded(base::MemoryState prev_state,
return true;
}
+void MemoryCoordinatorImpl::DiscardTab() {
+ if (delegate_)
+ delegate_->DiscardTab();
+}
+
RenderProcessHost* MemoryCoordinatorImpl::GetRenderProcessHost(
int render_process_id) {
return RenderProcessHost::FromID(render_process_id);

Powered by Google App Engine
This is Rietveld 408576698