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

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

Issue 66993003: Most references to GetActiveEntry removed from chrome/browser/ui. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT 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_loader.cc
diff --git a/chrome/browser/ui/search/instant_loader.cc b/chrome/browser/ui/search/instant_loader.cc
index 5ca923e841df8b394fc0432a53a4c0424f1cc1f7..302a5ac83b57cb2e538be1ce755bf8fff905c51f 100644
--- a/chrome/browser/ui/search/instant_loader.cc
+++ b/chrome/browser/ui/search/instant_loader.cc
@@ -65,7 +65,8 @@ void InstantLoader::Load() {
// page, preventing a potential flicker of the URL, and also ensures that
// (unless overridden by the page) the new tab title matches the browser UI
// locale.
- content::NavigationEntry* entry = contents_->GetController().GetActiveEntry();
+ content::NavigationEntry* entry =
+ contents_->GetController().GetVisibleEntry();
if (entry)
entry->SetTitle(l10n_util::GetStringUTF16(IDS_NEW_TAB_TITLE));

Powered by Google App Engine
This is Rietveld 408576698