Chromium Code Reviews| 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..d8c09556dbbef53a3ce798542c9fc6bc775d9382 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().GetVisibleEntry(); |
|
nasko
2013/11/08 23:52:03
Seems like LastCommitted usage to me.
jww
2013/11/11 19:18:51
Done.
|
| if (entry && (entry->GetURL() != ntp_url)) { |
| action_id = |
| content::PageTransitionStripQualifier(entry->GetTransitionType()); |