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 |