Chromium Code Reviews| 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 56181b8b0a116782fac57d50d56bc62326a211a2..f1df593d9154ad676eee589dc34937ddcfa18c2a 100644 |
| --- a/chrome/browser/ui/views/location_bar/location_bar_view.cc |
| +++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
| @@ -970,8 +970,6 @@ void LocationBarView::Update(const WebContents* contents) { |
| browser_->search_model()->voice_search_supported()); |
| RefreshContentSettingViews(); |
| generated_credit_card_view_->Update(); |
| - ZoomBubbleView::CloseBubble(); |
|
Peter Kasting
2014/11/19 19:23:20
You deleted this, but didn't move it to anywhere e
hajimehoshi
2014/11/20 05:12:30
Oops, sorry. Moved like Translate bubble. Done.
|
| - TranslateBubbleView::CloseBubble(); |
| RefreshZoomView(); |
| RefreshPageActionViews(); |
| RefreshTranslateIcon(); |
| @@ -1153,6 +1151,9 @@ void LocationBarView::RefreshTranslateIcon() { |
| command_updater()->UpdateCommandEnabled(IDC_TRANSLATE_PAGE, enabled); |
| translate_icon_view_->SetVisible(enabled); |
| translate_icon_view_->SetToggled(language_state.IsPageTranslated()); |
| + |
| + if (!enabled) |
| + TranslateBubbleView::CloseBubble(); |
| } |
| bool LocationBarView::RefreshManagePasswordsIconView() { |