diff options
Diffstat (limited to 'chromium/chrome/browser/resources/settings/about_page/update_warning_dialog.js')
-rw-r--r-- | chromium/chrome/browser/resources/settings/about_page/update_warning_dialog.js | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/chromium/chrome/browser/resources/settings/about_page/update_warning_dialog.js b/chromium/chrome/browser/resources/settings/about_page/update_warning_dialog.js deleted file mode 100644 index 4e62fc88900..00000000000 --- a/chromium/chrome/browser/resources/settings/about_page/update_warning_dialog.js +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2017 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-update-warning-dialog' is a component warning the - * user about update over mobile data. By clicking 'Continue', the user - * agrees to download update using mobile data. - */ -Polymer({ - is: 'settings-update-warning-dialog', - - behaviors: [I18nBehavior], - - properties: { - /** @type {!AboutPageUpdateInfo|undefined} */ - updateInfo: { - type: Object, - observer: 'updateInfoChanged_', - }, - }, - - /** @private {?settings.AboutPageBrowserProxy} */ - browserProxy_: null, - - /** @override */ - ready: function() { - this.browserProxy_ = settings.AboutPageBrowserProxyImpl.getInstance(); - }, - - /** @override */ - attached: function() { - this.$.dialog.showModal(); - }, - - /** @private */ - onCancelTap_: function() { - this.$.dialog.close(); - }, - - /** @private */ - onContinueTap_: function() { - this.browserProxy_.requestUpdateOverCellular( - this.updateInfo.version, this.updateInfo.size); - this.$.dialog.close(); - }, - - /** @private */ - updateInfoChanged_: function() { - this.$$('#update-warning-message').innerHTML = this.i18n( - 'aboutUpdateWarningMessage', - // Convert bytes to megabytes - Math.floor(Number(this.updateInfo.size) / (1024 * 1024))); - }, -}); |