| Index: chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm b/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm
|
| index 8b577fd8d4a39d3e47bf48d76754efff6d56523c..7dec74f192e13e115af096d1b7c17f9bb0ad4595 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm
|
| @@ -40,6 +40,7 @@ bool ZoomDecoration::UpdateIfNecessary(zoom::ZoomController* zoom_controller,
|
| return true;
|
| }
|
|
|
| + BOOL old_visibility = IsVisible();
|
| SetVisible(ShouldShowDecoration() && !zoom_controller->IsAtDefaultZoom());
|
|
|
| base::string16 zoom_percent =
|
| @@ -51,8 +52,10 @@ bool ZoomDecoration::UpdateIfNecessary(zoom::ZoomController* zoom_controller,
|
| ? @""
|
| : l10n_util::GetNSStringF(IDS_TOOLTIP_ZOOM, zoom_percent);
|
|
|
| - if ([tooltip_ isEqualToString:tooltip_string] && !default_zoom_changed)
|
| + if ([tooltip_ isEqualToString:tooltip_string] && !default_zoom_changed &&
|
| + old_visibility == IsVisible()) {
|
| return false;
|
| + }
|
|
|
| UpdateUI(zoom_controller, tooltip_string, location_bar_is_dark);
|
| return true;
|
|
|