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..1bf191a7a6bd24d0785b24364e9eefc6602dfa06 100644 |
--- a/chrome/browser/ui/zoom/zoom_controller.cc |
+++ b/chrome/browser/ui/zoom/zoom_controller.cc |
@@ -73,10 +73,10 @@ void ZoomController::UpdateState(const std::string& host) { |
if (!host.empty()) { |
// Use the active navigation entry's URL instead of the WebContents' so |
Charlie Reis
2013/11/12 01:09:29
This comment is very confusing since they meant to
jww
2013/11/12 22:32:50
Done.
|
// virtual URLs work (e.g. chrome://settings). http://crbug.com/153950 |
- content::NavigationEntry* active_entry = |
- web_contents()->GetController().GetActiveEntry(); |
- if (!active_entry || |
- host != net::GetHostOrSpecFromURL(active_entry->GetURL())) { |
+ content::NavigationEntry* entry = |
+ web_contents()->GetController().GetLastCommittedEntry(); |
+ if (!entry || |
+ host != net::GetHostOrSpecFromURL(entry->GetURL())) { |
return; |
} |
} |