Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / resources / chromeos / login / notification_card.js
blob880ded8bf8464d5e9e7653db25581fdefaaf01b7
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 Polymer({
6 is: 'notification-card',
8 properties: {
9 buttonLabel: {
10 type: String,
11 value: ''
14 linkLabel: {
15 type: String,
16 value: ''
19 type: {
20 type: String,
21 value: ''
25 iconNameByType_: function(type) {
26 if (type == 'fail')
27 return 'warning';
28 if (type == 'success')
29 return 'done';
30 console.error('Unknown type "' + type + '".');
31 return '';
34 buttonClicked_: function() {
35 this.fire('buttonclick');
38 linkClicked_: function(e) {
39 this.fire('linkclick');
40 e.preventDefault();
43 get submitButton() {
44 return this.$.submitButton;
46 });