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

Unified Diff: chrome/browser/memory/chrome_memory_coordinator_delegate.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: chrome/browser/memory/chrome_memory_coordinator_delegate.cc
diff --git a/chrome/browser/memory/chrome_memory_coordinator_delegate.cc b/chrome/browser/memory/chrome_memory_coordinator_delegate.cc
index 672b203569a5a65f9071cc5d4eb783f726a64b80..bac13e5cc80c6911d7a3d902e8ee2f079872b2ab 100644
--- a/chrome/browser/memory/chrome_memory_coordinator_delegate.cc
+++ b/chrome/browser/memory/chrome_memory_coordinator_delegate.cc
@@ -31,4 +31,11 @@ bool ChromeMemoryCoordinatorDelegate::CanSuspendBackgroundedRenderer(
#endif
}
+void ChromeMemoryCoordinatorDelegate::DiscardTab() {
+#if !defined(OS_ANDROID)
+ if (g_browser_process->GetTabManager())
+ g_browser_process->GetTabManager()->DiscardTab();
+#endif
+}
+
} // namespace memory
« no previous file with comments | « chrome/browser/memory/chrome_memory_coordinator_delegate.h ('k') | content/browser/memory/memory_coordinator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698