Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
index cb2675273b77210c810092f3964619aa385ae1f5..1a26c6507fff57fd3d89057b091091c4f3e80cb8 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
@@ -30,6 +30,7 @@ |
#include "chrome/browser/search_engines/template_url.h" |
#include "chrome/browser/search_engines/template_url_service.h" |
#include "chrome/browser/search_engines/template_url_service_factory.h" |
+#include "chrome/browser/translate/translate_service.h" |
#include "chrome/browser/translate/translate_tab_helper.h" |
#include "chrome/browser/ui/browser_instant_controller.h" |
#include "chrome/browser/ui/browser_list.h" |
@@ -752,6 +753,9 @@ void LocationBarViewMac::ShowFirstRunBubbleInternal() { |
} |
void LocationBarViewMac::UpdateTranslateDecoration() { |
+ if (!TranslateService::IsTranslateBubbleEnabled()) |
+ return; |
+ |
WebContents* web_contents = GetWebContents(); |
if (!web_contents) |
return; |