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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js

Issue 2293253002: [DevTools] Do not register log dispatcher (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
index 4f997a1a900bb4a7b79d225acdf7d36cc1ec4130..20d6df070b8ac8afa91d05459657a515ec22cf8a 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
@@ -45,9 +45,11 @@ WebInspector.ConsoleModel = function(target, logAgent)
this._warnings = 0;
this._errors = 0;
this._revokedErrors = 0;
- target.registerLogDispatcher(new WebInspector.LogDispatcher(this));
this._logAgent = logAgent;
- this._logAgent && this._logAgent.enable();
+ if (this._logAgent) {
+ target.registerLogDispatcher(new WebInspector.LogDispatcher(this));
+ this._logAgent.enable();
+ }
}
/** @enum {symbol} */
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698