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

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

Issue 2746643002: MD About: controlled indicator for change channel option (Closed)
Patch Set: format Created 3 years, 9 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 dfd68b2c07d94c0af59fc977d501facc5786436c..78d22e1e751f3fbafef175a1018f4d5547357793 100644
--- a/chrome/browser/resources/settings/about_page/detailed_build_info.js
+++ b/chrome/browser/resources/settings/about_page/detailed_build_info.js
@@ -60,6 +60,29 @@ Polymer({
},
/**
+ * @param {boolean} canChangeChannel
+ * @return {string}
+ * @private
+ */
+ getChangeChannelIndicatorSourceName_: function(canChangeChannel) {
+ return loadTimeData.getBoolean('aboutEnterpriseManaged') ? '' :
+ loadTimeData.getString('ownerEmail');
+ },
+
+ /**
+ * @param {boolean} canChangeChannel
+ * @return {CrPolicyIndicatorType}
+ * @private
+ */
+ getChangeChannelIndicatorType_: function(canChangeChannel) {
+ if (canChangeChannel)
+ return CrPolicyIndicatorType.NONE;
+ return loadTimeData.getBoolean('aboutEnterpriseManaged') ?
+ CrPolicyIndicatorType.DEVICE_POLICY :
+ CrPolicyIndicatorType.OWNER;
+ },
+
+ /**
* @param {!Event} e
* @private
*/

Powered by Google App Engine
This is Rietveld 408576698