summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/settings/about_page/detailed_build_info.js
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-02-13 10:55:42 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-05 13:33:38 +0000
commit248b70b82a40964d5594eb04feca0fa36716185d (patch)
tree44e31d9dd0ac2cb79f48633eefbc5496e013c347 /chromium/chrome/browser/resources/settings/about_page/detailed_build_info.js
parentcabfcdd1db482729ded525feae56911a99792773 (diff)
BASELINE: Update Chromium to 79.0.3945.147
And new simplified snapshot filter Change-Id: I7c692bedd5b3833f05565bd6f6939115350b233a Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/chrome/browser/resources/settings/about_page/detailed_build_info.js')
-rw-r--r--chromium/chrome/browser/resources/settings/about_page/detailed_build_info.js99
1 files changed, 0 insertions, 99 deletions
diff --git a/chromium/chrome/browser/resources/settings/about_page/detailed_build_info.js b/chromium/chrome/browser/resources/settings/about_page/detailed_build_info.js
deleted file mode 100644
index ba47cf969b4..00000000000
--- a/chromium/chrome/browser/resources/settings/about_page/detailed_build_info.js
+++ /dev/null
@@ -1,99 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @fileoverview 'settings-detailed-build-info' contains detailed build
- * information for ChromeOS.
- */
-
-Polymer({
- is: 'settings-detailed-build-info',
-
- behaviors: [I18nBehavior],
-
- properties: {
- /** @private */
- currentlyOnChannelText_: String,
-
- /** @private */
- showChannelSwitcherDialog_: Boolean,
-
- /** @private */
- canChangeChannel_: Boolean,
-
- eolMessageWithMonthAndYear: {
- type: String,
- value: '',
- },
- },
-
- /** @override */
- ready: function() {
- const browserProxy = settings.AboutPageBrowserProxyImpl.getInstance();
- browserProxy.pageReady();
- this.updateChannelInfo_();
- },
-
- /** @private */
- updateChannelInfo_: function() {
- const browserProxy = settings.AboutPageBrowserProxyImpl.getInstance();
- browserProxy.getChannelInfo().then(info => {
- // Display the target channel for the 'Currently on' message.
- this.currentlyOnChannelText_ = this.i18n(
- 'aboutCurrentlyOnChannel',
- this.i18n(settings.browserChannelToI18nId(info.targetChannel)));
- this.canChangeChannel_ = info.canChangeChannel;
- });
- },
-
- /**
- * @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
- */
- onChangeChannelTap_: function(e) {
- e.preventDefault();
- this.showChannelSwitcherDialog_ = true;
- },
-
- /**
- * @param {!Event} e
- * @private
- */
- onBuildDetailsTap_: function(e) {
- e.preventDefault();
- window.open('chrome://version');
- },
-
- /** @private */
- onChannelSwitcherDialogClosed_: function() {
- this.showChannelSwitcherDialog_ = false;
- cr.ui.focusWithoutInk(assert(this.$$('cr-button')));
- this.updateChannelInfo_();
- },
-});