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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/HeapProfilerPanel.js

Issue 2752403002: [DevTools] Migrate usages of Target to RuntimeModel where makes sense (Closed)
Patch Set: review comments addressed Created 3 years, 9 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/profiler/HeapProfilerPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfilerPanel.js b/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfilerPanel.js
index fdb7fc82fedff0507d78eae8bf5073681499b383..2f7594a43765b48200c214785130d9cfa19c0f64 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfilerPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfilerPanel.js
@@ -29,15 +29,15 @@ Profiler.HeapProfilerPanel = class extends Profiler.ProfilesPanel {
return;
var object = /** @type {!SDK.RemoteObject} */ (target);
- var objectId = object.objectId;
- if (!objectId)
+ if (!object.objectId)
return;
+ var objectId = /** @type {string} */ (object.objectId);
var heapProfiles = Profiler.ProfileTypeRegistry.instance.heapSnapshotProfileType.getProfiles();
if (!heapProfiles.length)
return;
- var heapProfilerModel = object.target().model(SDK.HeapProfilerModel);
+ var heapProfilerModel = object.runtimeModel().heapProfilerModel();
if (!heapProfilerModel)
return;

Powered by Google App Engine
This is Rietveld 408576698