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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.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/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index e4da47af3a08da29f209c3a3e7a2258f8618ee1c..7b2a3793dc9e0713b692e42dd2ecd9782d73a0a6 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -56,6 +56,7 @@
#include "chrome/browser/ui/views/omnibox/omnibox_view_views.h"
#include "chrome/browser/ui/views/omnibox/omnibox_views.h"
#include "chrome/browser/ui/webui/instant_ui.h"
+#include "chrome/browser/ui/zoom/zoom_controller.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension_switch_utils.h"
#include "chrome/common/pref_names.h"
@@ -586,8 +587,12 @@ void LocationBarView::ZoomChangedForActiveTab(bool can_show_bubble) {
void LocationBarView::RefreshZoomView() {
DCHECK(zoom_view_);
TabContents* tab_contents = GetTabContents();
- if (tab_contents)
- zoom_view_->Update(tab_contents->zoom_controller());
+ if (!tab_contents)
+ return;
+
+ ZoomController* zoom_controller =
+ ZoomController::FromWebContents(tab_contents->web_contents());
+ zoom_view_->Update(zoom_controller);
}
void LocationBarView::ShowChromeToMobileBubble() {
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.cc ('k') | chrome/browser/ui/views/location_bar/zoom_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698