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

Unified Diff: chrome/browser/ui/webui/ntp/android/navigation_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
« no previous file with comments | « chrome/browser/ui/webui/inspect_ui.cc ('k') | chrome/browser/ui/webui/ntp/most_visited_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/android/navigation_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/android/navigation_handler.cc b/chrome/browser/ui/webui/ntp/android/navigation_handler.cc
index 45dd01b4c74e4e95fe992ff0837e3113dd54810e..da022c53d416bcfd80aa2256e3f7ba1e6b3e8081 100644
--- a/chrome/browser/ui/webui/ntp/android/navigation_handler.cc
+++ b/chrome/browser/ui/webui/ntp/android/navigation_handler.cc
@@ -20,7 +20,7 @@ NavigationHandler::NavigationHandler() {}
NavigationHandler::~NavigationHandler() {
// Record an omnibox-based navigation, if there is one.
content::NavigationEntry* entry =
- web_ui()->GetWebContents()->GetController().GetActiveEntry();
+ web_ui()->GetWebContents()->GetController().GetVisibleEntry();
if (!entry)
return;
« no previous file with comments | « chrome/browser/ui/webui/inspect_ui.cc ('k') | chrome/browser/ui/webui/ntp/most_visited_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698