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

Unified Diff: content/browser/tab_contents/tab_contents.cc

Issue 8539027: Add SwappedOut to TabContentsDelegate to allow us to correctly delete TabContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux compile Created 9 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
Index: content/browser/tab_contents/tab_contents.cc
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 03c0fdd9c18c14403df5d371351297b9bfeca2c1..b25507a9910709cd1bf9488805d11aa98ac0cca6 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -1645,6 +1645,11 @@ void TabContents::Close(RenderViewHost* rvh) {
delegate()->CloseContents(this);
}
+void TabContents::SwappedOut(RenderViewHost* rvh) {
+ if (delegate() && rvh == render_view_host())
+ delegate()->SwappedOut(this);
+}
+
void TabContents::RequestMove(const gfx::Rect& new_bounds) {
if (delegate() && delegate()->IsPopupOrPanel(this))
delegate()->MoveContents(this, new_bounds);

Powered by Google App Engine
This is Rietveld 408576698