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

Unified Diff: chrome/browser/ui/gtk/location_bar_view_gtk.cc

Issue 10959054: Switch ZoomTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index b86f9eb7b3e33b8e04886fd04e89b5eeaa27d8fc..5f355e2da2625992c5d4f194aeee4e1a1fda1488 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -1571,7 +1571,8 @@ void LocationBarViewGtk::UpdateZoomIcon() {
if (!zoom_.get() || !tab_contents)
return;
- ZoomController* zoom_controller = tab_contents->zoom_controller();
+ ZoomController* zoom_controller =
+ ZoomController::FromWebContents(tab_contents->web_contents());
if (!zoom_controller || zoom_controller->IsAtDefaultZoom() ||
toolbar_model_->input_in_progress()) {
gtk_widget_hide(zoom_.get());
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm ('k') | chrome/browser/ui/gtk/zoom_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698