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

Unified Diff: chrome/browser/ui/webui/ntp/most_visited_handler.cc

Issue 22882007: Remove GetActiveEntry usage from chrome/browser/ui. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased on ToT. Created 7 years, 2 months 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/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 5416aa3e9bfa5dd1e4208b4cc75a1f47d29e7b7e..8007db40c1fd91a328efce274585a413539395d0 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();
if (entry && (entry->GetURL() != ntp_url)) {
action_id =
content::PageTransitionStripQualifier(entry->GetTransitionType());
« no previous file with comments | « chrome/browser/ui/webui/ntp/android/navigation_handler.cc ('k') | chrome/browser/ui/webui/ntp/suggestions_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698