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 if (settings.getQueryParameters().get('checkForUpdate') == 'true') { |
| 154 this.onCheckUpdatesTap_(); |
| 155 } |
153 }, | 156 }, |
154 | 157 |
155 /** @private */ | 158 /** @private */ |
156 startListening_: function() { | 159 startListening_: function() { |
157 this.addWebUIListener( | 160 this.addWebUIListener( |
158 'update-status-changed', | 161 'update-status-changed', |
159 this.onUpdateStatusChanged_.bind(this)); | 162 this.onUpdateStatusChanged_.bind(this)); |
160 // <if expr="_google_chrome and is_macosx"> | 163 // <if expr="_google_chrome and is_macosx"> |
161 this.addWebUIListener( | 164 this.addWebUIListener( |
162 'promotion-state-changed', | 165 'promotion-state-changed', |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 }); | 451 }); |
449 }, | 452 }, |
450 | 453 |
451 // <if expr="_google_chrome"> | 454 // <if expr="_google_chrome"> |
452 /** @private */ | 455 /** @private */ |
453 onReportIssueTap_: function() { | 456 onReportIssueTap_: function() { |
454 this.aboutBrowserProxy_.openFeedbackDialog(); | 457 this.aboutBrowserProxy_.openFeedbackDialog(); |
455 }, | 458 }, |
456 // </if> | 459 // </if> |
457 }); | 460 }); |
OLD | NEW |