summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant/instant_loader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/instant/instant_loader.cc')
-rw-r--r--chrome/browser/instant/instant_loader.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index 402e8d2..4c6f1ee 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -1140,7 +1140,9 @@ void InstantLoader::CreatePreviewContents(TabContents* tab_contents) {
preview_tab_contents_delegate_.reset(new TabContentsDelegateImpl(this));
SetupPreviewContents(tab_contents);
- preview_contents_->web_contents()->ShowContents();
+ // TODO(beng): investigate if we can avoid this and instead rely on the
+ // visibility of the WebContentsView
+ preview_contents_->web_contents()->WasRestored();
}
void InstantLoader::LoadInstantURL(const TemplateURL* template_url,
@@ -1169,7 +1171,7 @@ void InstantLoader::LoadInstantURL(const TemplateURL* template_url,
transition_type, false, std::string(), override_user_agent);
RenderViewHost* host = preview_contents_->web_contents()->GetRenderViewHost();
- preview_contents_->web_contents()->HideContents();
+ preview_contents_->web_contents()->WasHidden();
// If user_text is empty, this must be a preload of the search homepage. In
// that case, send down a SearchBoxResize message, which will switch the page