Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3466)

Unified Diff: chrome/browser/ui/views/location_bar/location_icon_view.cc

Issue 2749643004: Show Page Info button text in its tooltip (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698