summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tabs
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 00:31:04 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 00:31:04 +0000
commitd54e03a5f055dbdbe31b037e934e3feea364e4bc (patch)
tree2491b03537f1152bfaeed05b5da6ab87d4d3cafe /chrome/browser/tabs
parentb3471fde838d00d0b640a9d6aff957b5799a9c0d (diff)
downloadchromium_src-d54e03a5f055dbdbe31b037e934e3feea364e4bc.zip
chromium_src-d54e03a5f055dbdbe31b037e934e3feea364e4bc.tar.gz
chromium_src-d54e03a5f055dbdbe31b037e934e3feea364e4bc.tar.bz2
Move search code to a subdir
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r--chrome/browser/tabs/tab_strip_model.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc
index 2e42a64..3b0c4bb 100644
--- a/chrome/browser/tabs/tab_strip_model.cc
+++ b/chrome/browser/tabs/tab_strip_model.cc
@@ -533,7 +533,7 @@ bool TabStripModel::InternalCloseTabContentsAt(int index,
// them. Once they have fired, we'll get a message back saying whether
// to proceed closing the page or not, which sends us back to this method
// with the HasUnloadListener bit cleared.
- WebContents* web_contents = GetContentsAt(index)->AsWebContents();
+ WebContents* web_contents = detached_contents->AsWebContents();
// If we hit this code path, the tab had better be a WebContents tab.
DCHECK(web_contents);
web_contents->render_view_host()->FirePageBeforeUnload();