Chromium Code Reviews| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 143 this.startListening_(); | 143 this.startListening_(); |
| 144 }.bind(this)); | 144 }.bind(this)); |
| 145 | 145 |
| 146 this.aboutBrowserProxy_.getRegulatoryInfo().then(function(info) { | 146 this.aboutBrowserProxy_.getRegulatoryInfo().then(function(info) { |
| 147 this.regulatoryInfo_ = info; | 147 this.regulatoryInfo_ = info; |
| 148 }.bind(this)); | 148 }.bind(this)); |
| 149 // </if> | 149 // </if> |
| 150 // <if expr="not chromeos"> | 150 // <if expr="not chromeos"> |
| 151 this.startListening_(); | 151 this.startListening_(); |
| 152 // </if> | 152 // </if> |
| 153 var queryParams = settings.getQueryParameters(); | |
| 154 var checkForUpdate = queryParams.get('checkForUpdate') || ''; | |
| 155 if (checkForUpdate == 'true') { | |
|
stevenjb
2017/05/17 16:56:31
if (settings.getQueryParameters().get('checkForUpd
weidongg
2017/05/17 18:33:37
Done.
| |
| 156 this.onCheckUpdatesTap_(); | |
| 157 } | |
| 153 }, | 158 }, |
| 154 | 159 |
| 155 /** @private */ | 160 /** @private */ |
| 156 startListening_: function() { | 161 startListening_: function() { |
| 157 this.addWebUIListener( | 162 this.addWebUIListener( |
| 158 'update-status-changed', | 163 'update-status-changed', |
| 159 this.onUpdateStatusChanged_.bind(this)); | 164 this.onUpdateStatusChanged_.bind(this)); |
| 160 // <if expr="_google_chrome and is_macosx"> | 165 // <if expr="_google_chrome and is_macosx"> |
| 161 this.addWebUIListener( | 166 this.addWebUIListener( |
| 162 'promotion-state-changed', | 167 'promotion-state-changed', |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 448 }); | 453 }); |
| 449 }, | 454 }, |
| 450 | 455 |
| 451 // <if expr="_google_chrome"> | 456 // <if expr="_google_chrome"> |
| 452 /** @private */ | 457 /** @private */ |
| 453 onReportIssueTap_: function() { | 458 onReportIssueTap_: function() { |
| 454 this.aboutBrowserProxy_.openFeedbackDialog(); | 459 this.aboutBrowserProxy_.openFeedbackDialog(); |
| 455 }, | 460 }, |
| 456 // </if> | 461 // </if> |
| 457 }); | 462 }); |
| OLD | NEW |