| Index: chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
|
| index ec453049eccf37bdf61df9fe727c1a80030b3add..3aced3c88a788d8f7c94cc027ce96dcf626c428d 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
|
| @@ -102,7 +102,8 @@
|
| }
|
|
|
| bool LocationIconDecoration::AcceptsMousePress() {
|
| - return true;
|
| + // The search icon does not accept mouse presses.
|
| + return !owner_->GetOmniboxView()->IsEditingOrEmpty();
|
| }
|
|
|
| bool LocationIconDecoration::HasHoverAndPressEffect() {
|
| @@ -131,3 +132,9 @@
|
| return owner_->GetOmniboxView()->IsEditingOrEmpty() ?
|
| nil : l10n_util::GetNSStringWithFixup(IDS_TOOLTIP_LOCATION_ICON);
|
| }
|
| +
|
| +NSString* LocationIconDecoration::GetAccessibilityLabel() {
|
| + // This button should always be labelled even when the omnibox is being
|
| + // edited.
|
| + return l10n_util::GetNSStringWithFixup(IDS_TOOLTIP_LOCATION_ICON);
|
| +}
|
|
|