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

Unified Diff: chrome/browser/resources/help/help_page.js

Issue 680393002: Alt text for About UI product label (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: chrome/browser/resources/help/help_page.js
diff --git a/chrome/browser/resources/help/help_page.js b/chrome/browser/resources/help/help_page.js
index ab8e3df84b4656486a1bf5e2d5dd0a65ff0f0d15..050a98c0f492560fddbee95f088b6e87fea50c53 100644
--- a/chrome/browser/resources/help/help_page.js
+++ b/chrome/browser/resources/help/help_page.js
@@ -577,6 +577,15 @@ cr.define('help', function() {
}
$('channel-changer').hidden = !visible;
},
+
+ /**
+ * Sets the product label's alt text.
+ * @param {string} text The text to use for the image.
+ * @private
+ */
+ setProductLabelText_: function(text) {
+ $('product-label').setAttribute('alt', text);
+ },
};
HelpPage.setUpdateStatus = function(status, message) {
@@ -646,6 +655,10 @@ cr.define('help', function() {
HelpPage.getInstance().setBuildDate_(buildDate);
};
+ HelpPage.setProductLabelText = function(text) {
+ HelpPage.getInstance().setProductLabelText_(text);
+ };
+
// Export
return {
HelpPage: HelpPage

Powered by Google App Engine
This is Rietveld 408576698