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

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

Issue 2681643003: Expose DiscardTab() to MemoryCoordiantor (Closed)
Patch Set: comments 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 7dc87404926418112a8412a93af35ecac1076651..032a91d8333f926264a57292e0982b267b85603f 100644
--- a/content/browser/memory/memory_coordinator_impl.cc
+++ b/content/browser/memory/memory_coordinator_impl.cc
@@ -340,6 +340,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);
« no previous file with comments | « content/browser/memory/memory_coordinator_impl.h ('k') | content/browser/memory/memory_coordinator_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698