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

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

Issue 2474073005: DevTools: add the logging aspect into the PerformanceMonitor (Closed)
Patch Set: test fixed Created 4 years, 1 month 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/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 8feb8662192f3dba1d280e61196505625edc42cc..e7906e551fe0ba37709c9d5f89efc0e9b1afd583 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
@@ -50,6 +50,8 @@ WebInspector.ConsoleModel = class extends WebInspector.SDKModel {
if (this._logAgent) {
target.registerLogDispatcher(new WebInspector.LogDispatcher(this));
this._logAgent.enable();
+ if (!InspectorFrontendHost.isUnderTest())
+ this._logAgent.setReportViolationsEnabled(true);
}
}
@@ -494,6 +496,7 @@ WebInspector.ConsoleMessage.MessageSource = {
Rendering: 'rendering',
CSS: 'css',
Security: 'security',
+ Violation: 'violation',
Other: 'other',
Deprecation: 'deprecation',
Worker: 'worker'
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/main/module.json ('k') | third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698