Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/browser/resources/settings/about_page/about_page.js

Issue 2882933002: Add update available icon in system tray (Closed)
Patch Set: Add file to BUILD.gn Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/upgrade_detector_chromeos.cc ('k') | chrome/browser/ui/ash/system_tray_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698