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

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: 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..9520c601b422698c233eb1fed44c3f9b904c422f 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->GetVisibleEntry();
nasko 2013/11/08 23:52:03 Shouldn't this be LastCommitted?
jww 2013/11/11 19:18:51 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