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

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

Issue 2615673003: [MD WebUI] Move icons used in Bookmarks and Settings to shared file. (Closed)
Patch Set: reorder some icons Created 3 years, 11 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 Polymer({ 9 Polymer({
10 is: 'settings-about-page', 10 is: 'settings-about-page',
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 }, 283 },
284 284
285 /** 285 /**
286 * @return {?string} 286 * @return {?string}
287 * @private 287 * @private
288 */ 288 */
289 getIcon_: function() { 289 getIcon_: function() {
290 // If this platform has reached the end of the line, display an error icon 290 // If this platform has reached the end of the line, display an error icon
291 // and ignore UpdateStatus. 291 // and ignore UpdateStatus.
292 if (this.obsoleteSystemInfo_.endOfLine) 292 if (this.obsoleteSystemInfo_.endOfLine)
293 return 'settings:error'; 293 return 'cr:error';
294 294
295 switch (this.currentUpdateStatusEvent_.status) { 295 switch (this.currentUpdateStatusEvent_.status) {
296 case UpdateStatus.DISABLED_BY_ADMIN: 296 case UpdateStatus.DISABLED_BY_ADMIN:
297 return 'cr:domain'; 297 return 'cr:domain';
298 case UpdateStatus.FAILED: 298 case UpdateStatus.FAILED:
299 return 'settings:error'; 299 return 'cr:error';
300 case UpdateStatus.UPDATED: 300 case UpdateStatus.UPDATED:
301 case UpdateStatus.NEARLY_UPDATED: 301 case UpdateStatus.NEARLY_UPDATED:
302 return 'settings:check-circle'; 302 return 'cr:check-circle';
303 default: 303 default:
304 return null; 304 return null;
305 } 305 }
306 }, 306 },
307 307
308 /** 308 /**
309 * @return {?string} 309 * @return {?string}
310 * @private 310 * @private
311 */ 311 */
312 getIconSrc_: function() { 312 getIconSrc_: function() {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 }); 396 });
397 }, 397 },
398 398
399 <if expr="_google_chrome"> 399 <if expr="_google_chrome">
400 /** @private */ 400 /** @private */
401 onReportIssueTap_: function() { 401 onReportIssueTap_: function() {
402 this.aboutBrowserProxy_.openFeedbackDialog(); 402 this.aboutBrowserProxy_.openFeedbackDialog();
403 }, 403 },
404 </if> 404 </if>
405 }); 405 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698