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 11f7f824090c34af151d561799433fa22c8bb04e..b09f162be95a89e9da78119ef4fe951037dde5d0 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()); |