| Index: chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
|
| index 580725d0cd5a8491f55d0d21153f4b082015e32e..3cdddee12826a68247bbeb7886a6c89bc5f6b123 100644
|
| --- a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
|
| +++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
|
| @@ -84,7 +84,9 @@ ZoomBubbleView::~ZoomBubbleView() {
|
| }
|
|
|
| void ZoomBubbleView::Refresh() {
|
| - int zoom_percent = tab_contents_->zoom_controller()->zoom_percent();
|
| + ZoomController* zoom_controller =
|
| + ZoomController::FromWebContents(tab_contents_->web_contents());
|
| + int zoom_percent = zoom_controller->zoom_percent();
|
| label_->SetText(
|
| l10n_util::GetStringFUTF16Int(IDS_TOOLTIP_ZOOM, zoom_percent));
|
| StartTimerIfNecessary();
|
| @@ -130,7 +132,9 @@ void ZoomBubbleView::Init() {
|
| SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical,
|
| 0, 0, views::kRelatedControlVerticalSpacing));
|
|
|
| - int zoom_percent = tab_contents_->zoom_controller()->zoom_percent();
|
| + ZoomController* zoom_controller =
|
| + ZoomController::FromWebContents(tab_contents_->web_contents());
|
| + int zoom_percent = zoom_controller->zoom_percent();
|
| label_ = new views::Label(
|
| l10n_util::GetStringFUTF16Int(IDS_TOOLTIP_ZOOM, zoom_percent));
|
| gfx::Font font = label_->font().DeriveFont(kPercentageFontIncrease);
|
|
|