Chromium Code Reviews| Index: chrome/browser/browser.cc |
| =================================================================== |
| --- chrome/browser/browser.cc (revision 16268) |
| +++ chrome/browser/browser.cc (working copy) |
| @@ -1583,6 +1583,9 @@ |
| } |
| 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); |