diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-11 21:47:01 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-11 21:47:01 +0000 |
commit | 394aa59248445297e01bf09acc40c2ff0fb34999 (patch) | |
tree | e9549ea2649db32eba6ddb39e277ddbd3e34b492 /chrome/browser/browser.cc | |
parent | 2afc8336851ae77cfc681c8823d1c478364a4cd3 (diff) | |
download | chromium_src-394aa59248445297e01bf09acc40c2ff0fb34999.zip chromium_src-394aa59248445297e01bf09acc40c2ff0fb34999.tar.gz chromium_src-394aa59248445297e01bf09acc40c2ff0fb34999.tar.bz2 |
Use Chrome facilities for omnibox state save and restore on Mac.
TabContents has a facility for storing a bag of stuff across
current-tab changes. Wire up AutocompleteEditViewMac to use that
facility. Unfork some code in Browser::TabSelectedAt() so that the
new code gets used, and straighten up the Mac code along the code path
between there and AutocompleteEditViewMac.
This overall change also exposed a couple bugs/mis-features in the
AutocompleteEditViewMac code.
TEST=Text field maintains contents and selection across tab changes, even when edited.
Review URL: http://codereview.chromium.org/114017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 955a3af..79130d5 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -1590,13 +1590,9 @@ void Browser::TabSelectedAt(TabContents* old_contents, ProcessPendingUIUpdates(); if (old_contents) { -#if defined(OS_WIN) // Save what the user's currently typing, so it can be restored when we // switch back to this tab. window_->GetLocationBar()->SaveStateToContents(old_contents); -#else - NOTIMPLEMENTED(); -#endif } // Propagate the profile to the location bar. |