| Index: Source/devtools/front_end/audits/AuditsPanel.js
|
| diff --git a/Source/devtools/front_end/audits/AuditsPanel.js b/Source/devtools/front_end/audits/AuditsPanel.js
|
| index f6b32a8a9195f4179b849075dc7ba9e293e5534f..c952a15f43a8ebed441de48690e26904b879ece7 100644
|
| --- a/Source/devtools/front_end/audits/AuditsPanel.js
|
| +++ b/Source/devtools/front_end/audits/AuditsPanel.js
|
| @@ -55,6 +55,13 @@ WebInspector.AuditsPanel = function()
|
| this._launcherView = new WebInspector.AuditLauncherView(this._auditController);
|
| for (var id in this.categoriesById)
|
| this._launcherView.addCategory(this.categoriesById[id]);
|
| +
|
| + var extensionCategories = WebInspector.extensionServer.auditCategories();
|
| + for (var i = 0; i < extensionCategories.length; ++i) {
|
| + var category = extensionCategories[i];
|
| + this.addCategory(new WebInspector.AuditExtensionCategory(category.extensionOrigin, category.id, category.displayName, category.ruleCount));
|
| + }
|
| + WebInspector.extensionServer.addEventListener(WebInspector.ExtensionServer.Events.AuditCategoryAdded, this._extensionAuditCategoryAdded, this);
|
| }
|
|
|
| WebInspector.AuditsPanel.prototype = {
|
| @@ -168,6 +175,15 @@ WebInspector.AuditsPanel.prototype = {
|
| this.auditResultsTreeElement.removeChildren();
|
| },
|
|
|
| + /**
|
| + * @param {!WebInspector.Event} event
|
| + */
|
| + _extensionAuditCategoryAdded: function(event)
|
| + {
|
| + var category = /** @type {!WebInspector.ExtensionAuditCategory} */ (event.data);
|
| + this.addCategory(new WebInspector.AuditExtensionCategory(category.extensionOrigin, category.id, category.displayName, category.ruleCount));
|
| + },
|
| +
|
| __proto__: WebInspector.PanelWithSidebarTree.prototype
|
| }
|
|
|
|
|