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

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

Issue 10928061: About page UI: add confirmation message for release channel switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use the i18n string for the channel switch string. Created 8 years, 3 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 a6bbf3333f8986d93fab5aa4ac2ee9350f248e29..cbc6a3335c4be54db8d81053b7470fccb4c26112 100644
--- a/chrome/browser/resources/help/help.js
+++ b/chrome/browser/resources/help/help.js
@@ -52,6 +52,12 @@ cr.define('help', function() {
chrome.send('relaunchNow');
});
+ this.channelName_ = {
+ 'stable-channel': loadTimeData.getString('stable'),
+ 'beta-channel': loadTimeData.getString('beta'),
+ 'dev-channel': loadTimeData.getString('dev')
+ };
+
var channelChanger = $('channel-changer');
if (channelChanger) {
var self = this;
@@ -215,6 +221,9 @@ cr.define('help', function() {
*/
setReleaseChannel_: function(channel) {
chrome.send('setReleaseTrack', [channel]);
+ $('channel-change-confirmation').hidden = false;
+ $('channel-change-confirmation').textContent =
+ loadTimeData.getStringF('channel-changed', this.channelName_[channel]);
},
/**

Powered by Google App Engine
This is Rietveld 408576698