| 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-about-page' contains version and OS related | 6 * @fileoverview 'settings-about-page' contains version and OS related |
| 7 * information. | 7 * information. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 Polymer({ | 10 Polymer({ |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 type: Boolean, | 74 type: Boolean, |
| 75 computed: 'computeShowCheckUpdates_(' + | 75 computed: 'computeShowCheckUpdates_(' + |
| 76 'currentUpdateStatusEvent_, hasCheckedForUpdates_)', | 76 'currentUpdateStatusEvent_, hasCheckedForUpdates_)', |
| 77 }, | 77 }, |
| 78 | 78 |
| 79 /** @private {!Map<string, string>} */ | 79 /** @private {!Map<string, string>} */ |
| 80 focusConfig_: { | 80 focusConfig_: { |
| 81 type: Object, | 81 type: Object, |
| 82 value: function() { | 82 value: function() { |
| 83 var map = new Map(); | 83 var map = new Map(); |
| 84 map.set( | 84 if (settings.routes.DETAILED_BUILD_INFO) { |
| 85 settings.Route.DETAILED_BUILD_INFO.path, | 85 map.set( |
| 86 '#detailed-build-info-trigger'); | 86 settings.routes.DETAILED_BUILD_INFO.path, |
| 87 '#detailed-build-info-trigger'); |
| 88 } |
| 87 return map; | 89 return map; |
| 88 }, | 90 }, |
| 89 }, | 91 }, |
| 90 | 92 |
| 91 /** @private */ | 93 /** @private */ |
| 92 showUpdateWarningDialog_: { | 94 showUpdateWarningDialog_: { |
| 93 type: Boolean, | 95 type: Boolean, |
| 94 value: false, | 96 value: false, |
| 95 }, | 97 }, |
| 96 | 98 |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 */ | 385 */ |
| 384 isTargetChannelMoreStable_: function() { | 386 isTargetChannelMoreStable_: function() { |
| 385 assert(this.currentChannel_.length > 0); | 387 assert(this.currentChannel_.length > 0); |
| 386 assert(this.targetChannel_.length > 0); | 388 assert(this.targetChannel_.length > 0); |
| 387 return settings.isTargetChannelMoreStable( | 389 return settings.isTargetChannelMoreStable( |
| 388 this.currentChannel_, this.targetChannel_); | 390 this.currentChannel_, this.targetChannel_); |
| 389 }, | 391 }, |
| 390 | 392 |
| 391 /** @private */ | 393 /** @private */ |
| 392 onDetailedBuildInfoTap_: function() { | 394 onDetailedBuildInfoTap_: function() { |
| 393 settings.navigateTo(settings.Route.DETAILED_BUILD_INFO); | 395 settings.navigateTo(settings.routes.DETAILED_BUILD_INFO); |
| 394 }, | 396 }, |
| 395 | 397 |
| 396 /** @private */ | 398 /** @private */ |
| 397 onRelaunchAndPowerwashTap_: function() { | 399 onRelaunchAndPowerwashTap_: function() { |
| 398 this.lifetimeBrowserProxy_.factoryReset(); | 400 this.lifetimeBrowserProxy_.factoryReset(); |
| 399 }, | 401 }, |
| 400 | 402 |
| 401 /** | 403 /** |
| 402 * @return {boolean} | 404 * @return {boolean} |
| 403 * @private | 405 * @private |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 }); | 457 }); |
| 456 }, | 458 }, |
| 457 | 459 |
| 458 // <if expr="_google_chrome"> | 460 // <if expr="_google_chrome"> |
| 459 /** @private */ | 461 /** @private */ |
| 460 onReportIssueTap_: function() { | 462 onReportIssueTap_: function() { |
| 461 this.aboutBrowserProxy_.openFeedbackDialog(); | 463 this.aboutBrowserProxy_.openFeedbackDialog(); |
| 462 }, | 464 }, |
| 463 // </if> | 465 // </if> |
| 464 }); | 466 }); |
| OLD | NEW |