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

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

Issue 10038034: Implemented a "Last Updated" field for the about page of Chrome OS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added if statement to skip over string operations if string is already allocated Created 8 years, 8 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.js
diff --git a/chrome/browser/resources/help/help.js b/chrome/browser/resources/help/help.js
index 28910ff639aed2c935db3127a6663c2d67481fbe..b60e73e7948851298abee5008c4e8d327400dd7a 100644
--- a/chrome/browser/resources/help/help.js
+++ b/chrome/browser/resources/help/help.js
@@ -213,6 +213,16 @@ cr.define('help', function() {
setReleaseChannel_: function(channel) {
chrome.send('setReleaseTrack', [channel]);
},
+
+ /**
+ * Sets the value of the "Last Updated" field of the "More Info" section.
+ * @param {String} lastUpdated The date of the last update.
+ * @private
+ */
+ setLastUpdated_: function(lastUpdated) {
+ $('last-updated-container').hidden = false;
+ $('last-updated').textContent = lastUpdated;
+ },
};
HelpPage.setUpdateStatus = function(status, message) {
@@ -251,6 +261,10 @@ cr.define('help', function() {
HelpPage.getInstance().setReleaseChannel_(channel);
};
+ HelpPage.setLastUpdated = function(lastUpdated) {
+ HelpPage.getInstance().setLastUpdated_(lastUpdated);
+ }
+
// Export
return {
HelpPage: HelpPage

Powered by Google App Engine
This is Rietveld 408576698