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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/LogModel.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/sdk/LogModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/LogModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/LogModel.js
index dd9ec8c28f8318c861039c67694ab83191752b7e..fd9a7a0c8b497a303bdbc7c52488bc75c0d6b3be 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/LogModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/LogModel.js
@@ -8,11 +8,12 @@
SDK.LogModel = class extends SDK.SDKModel {
/**
* @param {!SDK.Target} target
+ * @param {!Protocol.Dispatcher} dispatcher
*/
- constructor(target) {
- super(target);
- target.registerLogDispatcher(this);
- this._logAgent = target.logAgent();
+ constructor(target, dispatcher) {
+ super(target, dispatcher);
+ dispatcher.registerLogDispatcher(this);
+ this._logAgent = dispatcher.logAgent();
this._logAgent.enable();
if (!Host.isUnderTest()) {
this._logAgent.startViolationsReport([

Powered by Google App Engine
This is Rietveld 408576698