diff options
Diffstat (limited to 'chromium/chrome/browser/resources/settings/chrome_cleanup_page/chrome_cleanup_page.js')
-rw-r--r-- | chromium/chrome/browser/resources/settings/chrome_cleanup_page/chrome_cleanup_page.js | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/chromium/chrome/browser/resources/settings/chrome_cleanup_page/chrome_cleanup_page.js b/chromium/chrome/browser/resources/settings/chrome_cleanup_page/chrome_cleanup_page.js index 8c6329255bf..e61a4d7aa0a 100644 --- a/chromium/chrome/browser/resources/settings/chrome_cleanup_page/chrome_cleanup_page.js +++ b/chromium/chrome/browser/resources/settings/chrome_cleanup_page/chrome_cleanup_page.js @@ -60,14 +60,6 @@ settings.ChromeCleanupOngoingAction = { /** * @typedef {{ - * statusIcon: string, - * statusIconClassName: string, - * }} - */ -settings.ChromeCleanupCardIcon; - -/** - * @typedef {{ * label: string, * doAction: !function(), * }} @@ -78,7 +70,6 @@ settings.ChromeCleanupCardActionButton; * @typedef {{ * title: ?string, * explanation: ?string, - * icon: ?settings.ChromeCleanupCardIcon, * actionButton: ?settings.ChromeCleanupCardActionButton, * flags: number, * }} @@ -214,18 +205,6 @@ Polymer({ computed: 'computeHasExtensionsToShow_(scannerResults_)', }, - /** @private */ - statusIcon_: { - type: String, - value: '', - }, - - /** @private */ - statusIconClassName_: { - type: String, - value: '', - }, - /** @private {chrome.settingsPrivate.PrefObject} */ logsUploadPref_: { type: Object, @@ -521,28 +500,11 @@ Polymer({ this.title_ = components.title || ''; this.explanation_ = components.explanation || ''; - this.updateIcon_(components.icon); this.updateActionButton_(components.actionButton); this.updateCardFlags_(components.flags); }, /** - * Updates the icon on the cleanup card to show the current state. - * @param {?settings.ChromeCleanupCardIcon} icon The icon to - * render, or null if no icon should be shown. - * @private - */ - updateIcon_: function(icon) { - if (!icon) { - this.statusIcon_ = ''; - this.statusIconClassName_ = ''; - } else { - this.statusIcon_ = icon.statusIcon; - this.statusIconClassName_ = icon.statusIconClassName; - } - }, - - /** * Updates the action button on the cleanup card as the action expected for * the current state. * @param {?settings.ChromeCleanupCardActionButton} actionButton @@ -663,30 +625,6 @@ Polymer({ */ buildCardStateToComponentsMap_: function() { /** - * The icons to show on the card. - * @enum {settings.ChromeCleanupCardIcon} - */ - const icons = { - // Card's icon indicates a cleanup offer. - SYSTEM: { - statusIcon: 'cr:security', - statusIconClassName: 'status-icon-remove', - }, - - // Card's icon indicates a warning (in case of failure). - WARNING: { - statusIcon: 'cr:error', - statusIconClassName: 'status-icon-warning', - }, - - // Card's icon indicates completion or reboot required. - DONE: { - statusIcon: 'settings:check-circle', - statusIconClassName: 'status-icon-done', - }, - }; - - /** * The action buttons to show on the card. * @enum {settings.ChromeCleanupCardActionButton} */ @@ -719,7 +657,6 @@ Polymer({ settings.ChromeCleanerCardState.CLEANUP_OFFERED, { title: this.i18n('chromeCleanupTitleRemove'), explanation: this.i18n('chromeCleanupExplanationRemove'), - icon: icons.SYSTEM, actionButton: actionButtons.REMOVE, flags: settings.ChromeCleanupCardFlags.SHOW_LOGS_PERMISSIONS | settings.ChromeCleanupCardFlags.SHOW_ITEMS_TO_REMOVE, @@ -729,7 +666,6 @@ Polymer({ settings.ChromeCleanerCardState.CLEANING, { title: this.i18n('chromeCleanupTitleRemoving'), explanation: this.i18n('chromeCleanupExplanationRemoving'), - icon: null, actionButton: null, flags: settings.ChromeCleanupCardFlags.WAITING_FOR_RESULT | settings.ChromeCleanupCardFlags.SHOW_ITEMS_TO_REMOVE, @@ -739,7 +675,6 @@ Polymer({ settings.ChromeCleanerCardState.REBOOT_REQUIRED, { title: this.i18n('chromeCleanupTitleRestart'), explanation: null, - icon: icons.DONE, actionButton: actionButtons.RESTART_COMPUTER, flags: settings.ChromeCleanupCardFlags.NONE, } @@ -748,7 +683,6 @@ Polymer({ settings.ChromeCleanerCardState.CLEANUP_SUCCEEDED, { title: this.i18nAdvanced('chromeCleanupTitleRemoved', {tags: ['a']}), explanation: null, - icon: icons.DONE, actionButton: null, flags: settings.ChromeCleanupCardFlags.NONE, } @@ -757,7 +691,6 @@ Polymer({ settings.ChromeCleanerCardState.CLEANING_FAILED, { title: this.i18n('chromeCleanupTitleErrorCantRemove'), explanation: this.i18n('chromeCleanupExplanationCleanupError'), - icon: icons.WARNING, actionButton: null, flags: settings.ChromeCleanupCardFlags.NONE, } @@ -766,7 +699,6 @@ Polymer({ settings.ChromeCleanerCardState.SCANNING_OFFERED, { title: this.i18n('chromeCleanupTitleFindAndRemove'), explanation: this.i18n('chromeCleanupExplanationFindAndRemove'), - icon: icons.SYSTEM, actionButton: actionButtons.FIND, flags: settings.ChromeCleanupCardFlags.SHOW_LOGS_PERMISSIONS, } @@ -775,7 +707,6 @@ Polymer({ settings.ChromeCleanerCardState.SCANNING, { title: this.i18n('chromeCleanupTitleScanning'), explanation: null, - icon: null, actionButton: null, flags: settings.ChromeCleanupCardFlags.WAITING_FOR_RESULT, } @@ -785,7 +716,6 @@ Polymer({ settings.ChromeCleanerCardState.SCANNING_FOUND_NOTHING, { title: this.i18n('chromeCleanupTitleNothingFound'), explanation: null, - icon: icons.DONE, actionButton: null, flags: settings.ChromeCleanupCardFlags.NONE, } @@ -794,7 +724,6 @@ Polymer({ settings.ChromeCleanerCardState.SCANNING_FAILED, { title: this.i18n('chromeCleanupTitleScanningFailed'), explanation: this.i18n('chromeCleanupExplanationScanError'), - icon: icons.WARNING, actionButton: null, flags: settings.ChromeCleanupCardFlags.NONE, } @@ -806,7 +735,6 @@ Polymer({ // connectivity and cleanups being disabled by the server. title: this.i18n('chromeCleanupTitleCleanupUnavailable'), explanation: this.i18n('chromeCleanupExplanationCleanupUnavailable'), - icon: icons.WARNING, actionButton: actionButtons.TRY_SCAN_AGAIN, flags: settings.ChromeCleanupCardFlags.NONE, }, |