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

Unified Diff: third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js

Issue 2851913002: [DevTools] Do not expose agents on Target
Patch Set: storage and tests.js Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698