Index: third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js b/third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js |
index 411c70d1d4da649b60617245bc608a863a8ddc72..d61e226223db7e2cd7dcbae89741dc42941de5f5 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js |
@@ -7,12 +7,12 @@ |
Security.SecurityModel = class extends SDK.SDKModel { |
/** |
* @param {!SDK.Target} target |
+ * @param {!Protocol.Dispatcher} dispatcher |
*/ |
- constructor(target) { |
- super(target); |
- this._dispatcher = new Security.SecurityDispatcher(this); |
- this._securityAgent = target.securityAgent(); |
- target.registerSecurityDispatcher(this._dispatcher); |
+ constructor(target, dispatcher) { |
+ super(target, dispatcher); |
+ this._securityAgent = dispatcher.securityAgent(); |
+ dispatcher.registerSecurityDispatcher(new Security.SecurityDispatcher(this)); |
this._securityAgent.enable(); |
} |