Chromium Code Reviews| Index: chrome/browser/ui/views/location_bar/location_icon_view.cc |
| diff --git a/chrome/browser/ui/views/location_bar/location_icon_view.cc b/chrome/browser/ui/views/location_bar/location_icon_view.cc |
| index d388e2fa9b8f2eb769d3cfd2b20393d15a02ba67..b21d5a8dbc281ef88c38f34ce335508ebf0904ed 100644 |
| --- a/chrome/browser/ui/views/location_bar/location_icon_view.cc |
| +++ b/chrome/browser/ui/views/location_bar/location_icon_view.cc |
| @@ -88,8 +88,13 @@ void LocationIconView::OnGestureEvent(ui::GestureEvent* event) { |
| bool LocationIconView::GetTooltipText(const gfx::Point& p, |
| base::string16* tooltip) const { |
| - if (show_tooltip_) |
| - *tooltip = l10n_util::GetStringUTF16(IDS_TOOLTIP_LOCATION_ICON); |
| + if (show_tooltip_) { |
| + base::string16 tip = l10n_util::GetStringUTF16(IDS_TOOLTIP_LOCATION_ICON); |
| + // Prepend the verbose text of the security chip, if any. |
| + if (!label()->text().empty()) |
| + tip = label()->text() + base::ASCIIToUTF16(". ") + tip; |
|
Peter Kasting
2017/03/14 19:54:56
This isn't OK for l10n -- if we're going to constr
|
| + *tooltip = tip; |
| + } |
| return show_tooltip_; |
| } |