diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-27 19:39:54 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-27 19:39:54 +0000 |
commit | aacfcc78f2fc853bb8eecb33afb30e19a6b34e90 (patch) | |
tree | e3e01634369a802254f40838ce49bf5eb78e2977 /chrome/browser/browser.cc | |
parent | ea0269b4343fa25cc5d8f72c8542ea14185354d6 (diff) | |
download | chromium_src-aacfcc78f2fc853bb8eecb33afb30e19a6b34e90.zip chromium_src-aacfcc78f2fc853bb8eecb33afb30e19a6b34e90.tar.gz chromium_src-aacfcc78f2fc853bb8eecb33afb30e19a6b34e90.tar.bz2 |
Don't lose omnibox edits when dragging tabs out. Patch by Yuzo Fujishima (see http://codereview.chromium.org/115558 ), r=beng.
BUG=10632
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17012 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 9050f19..1cc6f0b 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -1571,6 +1571,9 @@ void Browser::TabClosingAt(TabContents* contents, int index) { } void Browser::TabDetachedAt(TabContents* contents, int index) { + // Save what the user's currently typing. + window_->GetLocationBar()->SaveStateToContents(contents); + contents->set_delegate(NULL); if (!tabstrip_model_.closing_all()) SyncHistoryWithTabs(0); |