Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index e1b9c58f35c53810d28882f502a2d578e9c4d3d9..ad0099a58e0c639ab6badca8a949ed8530411fcb 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -3165,7 +3165,7 @@ void Browser::TabDeactivated(TabContentsWrapper* contents) { |
if (contents == fullscreened_tab_) |
ExitTabbedFullscreenModeIfNecessary(); |
if (instant()) |
- instant()->DestroyPreviewContentsAndLeaveActive(); |
+ instant()->Hide(); |
// Save what the user's currently typing, so it can be restored when we |
// switch back to this tab. |
@@ -4154,7 +4154,7 @@ void Browser::ShowInstant(TabContentsWrapper* preview_contents) { |
} |
void Browser::HideInstant() { |
- window_->HideInstant(instant_->is_active()); |
+ window_->HideInstant(); |
} |
void Browser::CommitInstant(TabContentsWrapper* preview_contents) { |
@@ -5102,7 +5102,7 @@ TabContentsWrapper* Browser::TabContentsFactory( |
} |
bool Browser::OpenInstant(WindowOpenDisposition disposition) { |
- if (!instant() || !instant()->is_active() || !instant()->PrepareForCommit() || |
+ if (!instant() || !instant()->PrepareForCommit() || |
disposition == NEW_BACKGROUND_TAB) { |
// NEW_BACKGROUND_TAB results in leaving the omnibox open, so we don't |
// attempt to use the instant preview. |