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 338dedd92a7232a5f030531c903014a39afb2ac1..43399f5b7ca98d06c1b78dfc1b812d64a471c8fa 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" |
@@ -774,6 +775,9 @@ void LocationBarViewMac::ShowFirstRunBubbleInternal() { |
} |
void LocationBarViewMac::UpdateTranslateDecoration() { |
+ if (!TranslateService::IsTranslateBubbleEnabled()) |
+ return; |
+ |
WebContents* web_contents = GetWebContents(); |
if (!web_contents) |
return; |