Index: chrome/browser/ui/search/instant_controller.cc |
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc |
index 526c3b39a89e9dad3e97f3cc6004f31321b92015..a7477ad43d389d07dc2d23ad72a721115436eaf3 100644 |
--- a/chrome/browser/ui/search/instant_controller.cc |
+++ b/chrome/browser/ui/search/instant_controller.cc |
@@ -61,11 +61,11 @@ void EnsureSearchTermsAreSet(content::WebContents* contents, |
controller->GetTransientEntry()) |
return; |
- const content::NavigationEntry* active_entry = controller->GetActiveEntry(); |
+ const content::NavigationEntry* entry = controller->GetLastCommittedEntry(); |
content::NavigationEntry* transient = controller->CreateNavigationEntry( |
- active_entry->GetURL(), |
- active_entry->GetReferrer(), |
- active_entry->GetTransitionType(), |
+ entry->GetURL(), |
+ entry->GetReferrer(), |
+ entry->GetTransitionType(), |
false, |
std::string(), |
contents->GetBrowserContext()); |