Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2952)

Unified Diff: chrome/browser/ui/search/instant_controller.cc

Issue 66993003: Most references to GetActiveEntry removed from chrome/browser/ui. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates from nasko comments Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
Charlie Reis 2013/11/12 01:09:29 @samarth: I'm not sure which entry you're looking
samarth 2013/11/12 15:55:07 What's important here is the fact that we set the
jww 2013/11/12 22:32:50 Done.
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());

Powered by Google App Engine
This is Rietveld 408576698