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

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

Issue 2345873002: [Devtools] Add capability for the log domain (Closed)
Patch Set: [Devtools] Add capability for the log domain Created 4 years, 3 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/TargetManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
index b816983cfb5cb599025c47b20ba6fd7a26216fc7..ed81dfd7ffb7b961a218ca3b41597a52d321c3ca 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
@@ -190,8 +190,10 @@ WebInspector.TargetManager.prototype = {
{
var target = new WebInspector.Target(this, name, capabilitiesMask, connection, parentTarget);
+ var logAgent = target.hasLogCapability() ? target.logAgent() : null;
+
/** @type {!WebInspector.ConsoleModel} */
- target.consoleModel = new WebInspector.ConsoleModel(target);
+ target.consoleModel = new WebInspector.ConsoleModel(target, logAgent);
/** @type {!WebInspector.RuntimeModel} */
target.runtimeModel = new WebInspector.RuntimeModel(target);

Powered by Google App Engine
This is Rietveld 408576698