Index: chrome/browser/ui/webui/ntp/most_visited_handler.cc |
diff --git a/chrome/browser/ui/webui/ntp/most_visited_handler.cc b/chrome/browser/ui/webui/ntp/most_visited_handler.cc |
index ba6e7e0b79a1337e6a7271ea09b51598f1e3d639..a43c6341b0239c0a4000bc3b1490979a661699a4 100644 |
--- a/chrome/browser/ui/webui/ntp/most_visited_handler.cc |
+++ b/chrome/browser/ui/webui/ntp/most_visited_handler.cc |
@@ -64,7 +64,7 @@ MostVisitedHandler::~MostVisitedHandler() { |
const GURL ntp_url = GURL(chrome::kChromeUINewTabURL); |
int action_id = NTP_FOLLOW_ACTION_OTHER; |
content::NavigationEntry* entry = |
- web_ui()->GetWebContents()->GetController().GetActiveEntry(); |
+ web_ui()->GetWebContents()->GetController().GetLastCommittedEntry(); |
if (entry && (entry->GetURL() != ntp_url)) { |
action_id = |
content::PageTransitionStripQualifier(entry->GetTransitionType()); |