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

Unified Diff: chrome/browser/ui/zoom/zoom_controller.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/print_preview/print_preview_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/zoom/zoom_controller.cc
diff --git a/chrome/browser/ui/zoom/zoom_controller.cc b/chrome/browser/ui/zoom/zoom_controller.cc
index 9c97feaa88f28ca3697d46b00d66e9519864a3ef..7eb2bde66c6e37cbba823516bc031d570edfc22f 100644
--- a/chrome/browser/ui/zoom/zoom_controller.cc
+++ b/chrome/browser/ui/zoom/zoom_controller.cc
@@ -74,7 +74,7 @@ void ZoomController::UpdateState(const std::string& host) {
// Use the active navigation entry's URL instead of the WebContents' so
// virtual URLs work (e.g. chrome://settings). http://crbug.com/153950
content::NavigationEntry* active_entry =
- web_contents()->GetController().GetActiveEntry();
+ web_contents()->GetController().GetVisibleEntry();
if (!active_entry ||
host != net::GetHostOrSpecFromURL(active_entry->GetURL())) {
return;
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698