diff options
author | sreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-04 18:08:15 +0000 |
---|---|---|
committer | sreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-04 18:08:15 +0000 |
commit | 88f15b5393368eb61397c8828ef786c1b9d02172 (patch) | |
tree | 144c1b5cbd1850fff623d868d080fd249acb4fd8 /chrome/browser/ui/browser.cc | |
parent | 737cfb2a8cc57c8fbc93c2fb5997f384e01bf0cc (diff) | |
download | chromium_src-88f15b5393368eb61397c8828ef786c1b9d02172.zip chromium_src-88f15b5393368eb61397c8828ef786c1b9d02172.tar.gz chromium_src-88f15b5393368eb61397c8828ef786c1b9d02172.tar.bz2 |
Don't destroy instant loaders if you don't have to.
As long as the omnibox retains focus, don't delete any instant loaders. This
includes cases where the user is not typing actively, or when the user switches
tabs (but retaining focus in the omnibox). The rationale is that the user may
type at any time, so it's useful to keep the instant loaders ready to process
the user query.
BUG=none
TEST=PreloadInstantTest.*
Review URL: http://codereview.chromium.org/8085010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103938 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser.cc')
-rw-r--r-- | chrome/browser/ui/browser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc index 6d0b435..67a5323 100644 --- a/chrome/browser/ui/browser.cc +++ b/chrome/browser/ui/browser.cc @@ -3186,7 +3186,7 @@ void Browser::TabDeactivated(TabContentsWrapper* contents) { if (contents == fullscreened_tab_) ExitTabbedFullscreenModeIfNecessary(); if (instant()) - instant()->DestroyPreviewContents(); + instant()->DestroyPreviewContentsAndLeaveActive(); // Save what the user's currently typing, so it can be restored when we // switch back to this tab. |