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

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

Issue 2721663005: [DevTools] Access cpu profiler only when JS capability is present. (Closed)
Patch Set: coverage Created 3 years, 10 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 d894ed023aad61a5af0e073ff8454a94a0151ea9..c99569593999262af72a0c0cae8c6058ab516d95 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
@@ -256,8 +256,7 @@ SDK.TargetManager = class extends Common.Object {
/** @type {?SDK.SubTargetsManager} */
target.subTargetsManager = target.model(SDK.SubTargetsManager);
- /** @type {!SDK.CPUProfilerModel} */
- target.cpuProfilerModel = /** @type {!SDK.CPUProfilerModel} */ (target.model(SDK.CPUProfilerModel));
+ target.model(SDK.CPUProfilerModel);
target.tracingManager = new SDK.TracingManager(target);

Powered by Google App Engine
This is Rietveld 408576698