| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** | 5 /** |
| 6 * @fileoverview 'settings-detailed-build-info' contains detailed build | 6 * @fileoverview 'settings-detailed-build-info' contains detailed build |
| 7 * information for ChromeOS. | 7 * information for ChromeOS. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 Polymer({ | 10 Polymer({ |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 shouldShowVersion_: function(version) { | 58 shouldShowVersion_: function(version) { |
| 59 return version.length > 0; | 59 return version.length > 0; |
| 60 }, | 60 }, |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * @param {boolean} canChangeChannel | 63 * @param {boolean} canChangeChannel |
| 64 * @return {string} | 64 * @return {string} |
| 65 * @private | 65 * @private |
| 66 */ | 66 */ |
| 67 getChangeChannelIndicatorSourceName_: function(canChangeChannel) { | 67 getChangeChannelIndicatorSourceName_: function(canChangeChannel) { |
| 68 return loadTimeData.getBoolean('aboutEnterpriseManaged') ? '' : | 68 return loadTimeData.getBoolean('aboutEnterpriseManaged') ? |
| 69 '' : |
| 69 loadTimeData.getString('ownerEmail'); | 70 loadTimeData.getString('ownerEmail'); |
| 70 }, | 71 }, |
| 71 | 72 |
| 72 /** | 73 /** |
| 73 * @param {boolean} canChangeChannel | 74 * @param {boolean} canChangeChannel |
| 74 * @return {CrPolicyIndicatorType} | 75 * @return {CrPolicyIndicatorType} |
| 75 * @private | 76 * @private |
| 76 */ | 77 */ |
| 77 getChangeChannelIndicatorType_: function(canChangeChannel) { | 78 getChangeChannelIndicatorType_: function(canChangeChannel) { |
| 78 if (canChangeChannel) | 79 if (canChangeChannel) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 91 this.showChannelSwitcherDialog_ = true; | 92 this.showChannelSwitcherDialog_ = true; |
| 92 }, | 93 }, |
| 93 | 94 |
| 94 /** @private */ | 95 /** @private */ |
| 95 onChannelSwitcherDialogClosed_: function() { | 96 onChannelSwitcherDialogClosed_: function() { |
| 96 this.showChannelSwitcherDialog_ = false; | 97 this.showChannelSwitcherDialog_ = false; |
| 97 cr.ui.focusWithoutInk(assert(this.$$('paper-button'))); | 98 cr.ui.focusWithoutInk(assert(this.$$('paper-button'))); |
| 98 this.updateChannelInfo_(); | 99 this.updateChannelInfo_(); |
| 99 }, | 100 }, |
| 100 }); | 101 }); |
| OLD | NEW |