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

Side by Side Diff: chrome/browser/resources/extensions/extension_error.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 cr.define('extensions', function() { 5 cr.define('extensions', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * Clone a template within the extension error template collection. 9 * Clone a template within the extension error template collection.
10 * @param {string} templateName The class name of the template to clone. 10 * @param {string} templateName The class name of the template to clone.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 viewDetailsLink.addEventListener('click', function(e) { 78 viewDetailsLink.addEventListener('click', function(e) {
79 extensions.ExtensionErrorOverlay.getInstance().setErrorAndShowOverlay( 79 extensions.ExtensionErrorOverlay.getInstance().setErrorAndShowOverlay(
80 error, extensionUrl); 80 error, extensionUrl);
81 }); 81 });
82 } 82 }
83 }, 83 },
84 }; 84 };
85 85
86 /** 86 /**
87 * A variable length list of runtime or manifest errors for a given extension. 87 * A variable length list of runtime or manifest errors for a given extension.
88 * @param {Array.<Object>} errors The list of extension errors with which 88 * @param {Array<Object>} errors The list of extension errors with which
89 * to populate the list. 89 * to populate the list.
90 * @constructor 90 * @constructor
91 * @extends {HTMLDivElement} 91 * @extends {HTMLDivElement}
92 */ 92 */
93 function ExtensionErrorList(errors) { 93 function ExtensionErrorList(errors) {
94 var div = cloneTemplate('extension-error-list'); 94 var div = cloneTemplate('extension-error-list');
95 div.__proto__ = ExtensionErrorList.prototype; 95 div.__proto__ = ExtensionErrorList.prototype;
96 div.errors_ = errors; 96 div.errors_ = errors;
97 div.decorate(); 97 div.decorate();
98 return div; 98 return div;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 listContents.classList.add('deactivating'); 161 listContents.classList.add('deactivating');
162 } 162 }
163 }.bind(this)); 163 }.bind(this));
164 } 164 }
165 }; 165 };
166 166
167 return { 167 return {
168 ExtensionErrorList: ExtensionErrorList 168 ExtensionErrorList: ExtensionErrorList
169 }; 169 };
170 }); 170 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698