diff options
Diffstat (limited to 'chrome/browser/dom_ui/new_tab_ui.cc')
-rw-r--r-- | chrome/browser/dom_ui/new_tab_ui.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc index b5cdf52..3d0cdf1 100644 --- a/chrome/browser/dom_ui/new_tab_ui.cc +++ b/chrome/browser/dom_ui/new_tab_ui.cc @@ -797,15 +797,9 @@ void NewTabUIContents::AttachMessageHandlers() { } } -bool NewTabUIContents::Navigate(const NavigationEntry& entry, bool reload) { - const bool result = WebContents::Navigate(entry, reload); - - // Force the title to say 'New tab', even when loading. The supplied entry is - // also the pending entry. - NavigationEntry* pending_entry = controller()->GetPendingEntry(); - DCHECK(pending_entry && pending_entry == &entry); - pending_entry->set_title(forced_title_); - +bool NewTabUIContents::NavigateToPendingEntry(bool reload) { + const bool result = WebContents::NavigateToPendingEntry(reload); + controller()->GetPendingEntry()->set_title(forced_title_); return result; } |