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

Unified Diff: chrome/browser/resources/settings/about_page/detailed_build_info.js

Issue 1987813004: MD Settings: About page, implementing update status. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test, after changing "=" to "$=" Created 4 years, 7 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/settings/about_page/detailed_build_info.js
diff --git a/chrome/browser/resources/settings/about_page/detailed_build_info.js b/chrome/browser/resources/settings/about_page/detailed_build_info.js
index cb9f109aada915c0e220425cbcd91cee1595974e..613d650660f589f129c60263c1b6bf4b0165f679 100644
--- a/chrome/browser/resources/settings/about_page/detailed_build_info.js
+++ b/chrome/browser/resources/settings/about_page/detailed_build_info.js
@@ -7,22 +7,6 @@
* information for ChromeOS.
*/
-(function() {
-
-/**
- * @param {!BrowserChannel} channel
- * @return {string}
- */
-function browserChannelToI18nId(channel) {
- switch (channel) {
- case BrowserChannel.BETA: return 'aboutChannelBeta';
- case BrowserChannel.DEV: return 'aboutChannelDev';
- case BrowserChannel.STABLE: return 'aboutChannelStable';
- }
-
- assertNotReached();
-}
-
Polymer({
is: 'settings-detailed-build-info',
@@ -47,7 +31,7 @@ Polymer({
browserProxy.getCurrentChannel().then(function(channel) {
this.currentlyOnChannelText_ = this.i18n(
'aboutCurrentlyOnChannel',
- this.i18n(browserChannelToI18nId(channel)));
+ this.i18n(settings.browserChannelToI18nId(channel)));
}.bind(this));
},
@@ -60,5 +44,3 @@ Polymer({
return version.length > 0;
},
});
-
-})();
« no previous file with comments | « chrome/browser/resources/settings/about_page/compiled_resources2.gyp ('k') | chrome/browser/resources/settings/icons.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698