From bd9b55430689403d9b17fcfe633266c8ad650df4 Mon Sep 17 00:00:00 2001 From: "beng@google.com" Date: Tue, 12 Aug 2008 04:09:26 +0000 Subject: Fiddle with destruction order of the dragged tab controller to ensure that there's still a TabStrip available for it. B=1145714 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@708 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/tabs/tab_strip.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/browser/tabs') diff --git a/chrome/browser/tabs/tab_strip.cc b/chrome/browser/tabs/tab_strip.cc index 2354f5e..f4b1447 100644 --- a/chrome/browser/tabs/tab_strip.cc +++ b/chrome/browser/tabs/tab_strip.cc @@ -467,6 +467,9 @@ TabStrip::~TabStrip() { // TODO(beng): (1031854) Restore this line once XPFrame/VistaFrame are dead. //model_->RemoveObserver(this); + // TODO(beng): remove this if it doesn't work to fix the TabSelectedAt bug. + drag_controller_.reset(NULL); + // Stop any existing Loading Animation timer. MessageLoop::current()->timer_manager()->StopTimer( loading_animation_timer_.get()); -- cgit v1.1