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

Side by Side Diff: chrome/browser/resources/help/help.js

Issue 10824214: chrome UI: change UI string "Last Updated" to "Build Date". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace the UI string to 'Build Date'. Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 <include src="../uber/uber_utils.js"> 5 <include src="../uber/uber_utils.js">
6 6
7 cr.define('help', function() { 7 cr.define('help', function() {
8 /** 8 /**
9 * Encapsulated handling of the help page. 9 * Encapsulated handling of the help page.
10 */ 10 */
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 }, 223 },
224 224
225 /** 225 /**
226 * @private 226 * @private
227 */ 227 */
228 setReleaseChannel_: function(channel) { 228 setReleaseChannel_: function(channel) {
229 chrome.send('setReleaseTrack', [channel]); 229 chrome.send('setReleaseTrack', [channel]);
230 }, 230 },
231 231
232 /** 232 /**
233 * Sets the value of the "Last Updated" field of the "More Info" section. 233 * Sets the value of the "Build Date" field of the "More Info" section.
234 * @param {String} lastUpdated The date of the last update. 234 * @param {String} buildDate The date of the build.
235 * @private 235 * @private
236 */ 236 */
237 setLastUpdated_: function(lastUpdated) { 237 setBuildDate_: function(buildDate) {
achuithb 2012/08/09 19:45:00 Is this cros-only or for all of chrome? I'm assumi
hshi1 2012/08/09 19:51:15 Although not very obvious, this is indeed for cros
238 $('last-updated-container').classList.remove('empty'); 238 $('build-date-container').classList.remove('empty');
239 $('last-updated').textContent = lastUpdated; 239 $('build-date').textContent = buildDate;
240 }, 240 },
241 }; 241 };
242 242
243 HelpPage.setUpdateStatus = function(status, message) { 243 HelpPage.setUpdateStatus = function(status, message) {
244 HelpPage.getInstance().setUpdateStatus_(status, message); 244 HelpPage.getInstance().setUpdateStatus_(status, message);
245 }; 245 };
246 246
247 HelpPage.setProgress = function(progress) { 247 HelpPage.setProgress = function(progress) {
248 HelpPage.getInstance().setProgress_(progress); 248 HelpPage.getInstance().setProgress_(progress);
249 }; 249 };
(...skipping 23 matching lines...) Expand all
273 }; 273 };
274 274
275 HelpPage.updateEnableReleaseChannel = function(enabled) { 275 HelpPage.updateEnableReleaseChannel = function(enabled) {
276 HelpPage.getInstance().updateEnableReleaseChannel_(enabled); 276 HelpPage.getInstance().updateEnableReleaseChannel_(enabled);
277 }; 277 };
278 278
279 HelpPage.setReleaseChannel = function(channel) { 279 HelpPage.setReleaseChannel = function(channel) {
280 HelpPage.getInstance().setReleaseChannel_(channel); 280 HelpPage.getInstance().setReleaseChannel_(channel);
281 }; 281 };
282 282
283 HelpPage.setLastUpdated = function(lastUpdated) { 283 HelpPage.setBuildDate = function(buildDate) {
284 HelpPage.getInstance().setLastUpdated_(lastUpdated); 284 HelpPage.getInstance().setBuildDate_(buildDate);
285 } 285 }
286 286
287 // Export 287 // Export
288 return { 288 return {
289 HelpPage: HelpPage 289 HelpPage: HelpPage
290 }; 290 };
291 }); 291 });
292 292
293 /** 293 /**
294 * onload listener to initialize the HelpPage. 294 * onload listener to initialize the HelpPage.
295 */ 295 */
296 window.onload = function() { 296 window.onload = function() {
297 help.HelpPage.getInstance().initialize(); 297 help.HelpPage.getInstance().initialize();
298 }; 298 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698