Index: chrome/browser/ui/browser_instant_controller.cc |
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc |
index 3e95e325a1a2cafeddc3491ca24746dc1a52075e..421bbf0fdb17e3c3071c552da5a7b055dd28aca2 100644 |
--- a/chrome/browser/ui/browser_instant_controller.cc |
+++ b/chrome/browser/ui/browser_instant_controller.cc |
@@ -111,6 +111,19 @@ void BrowserInstantController::ActiveTabChanged() { |
instant_.ActiveTabChanged(); |
} |
+void BrowserInstantController::TabInsertedAt(content::WebContents* contents, |
+ int index, |
+ bool foreground) { |
+ if (foreground) { |
+ InstantSearchPrerenderer* prerenderer = |
+ GetInstantSearchPrerenderer(profile()); |
+ if (prerenderer) |
+ prerenderer->Init( |
+ contents->GetController().GetSessionStorageNamespaceMap(), |
+ contents->GetContainerBounds().size()); |
+ } |
+} |
+ |
void BrowserInstantController::TabDeactivated(content::WebContents* contents) { |
instant_.TabDeactivated(contents); |