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

Unified Diff: LayoutTests/inspector/profiler/heap-snapshot-test.js

Issue 147923011: Remove unnecessary _profileTypesByIdMap map (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed Created 6 years, 11 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: LayoutTests/inspector/profiler/heap-snapshot-test.js
diff --git a/LayoutTests/inspector/profiler/heap-snapshot-test.js b/LayoutTests/inspector/profiler/heap-snapshot-test.js
index 3b68c987ef30070cbbb9595ea1146b7acc206d83..a8f788a54ecfca810de828c2305740cf82319733 100644
--- a/LayoutTests/inspector/profiler/heap-snapshot-test.js
+++ b/LayoutTests/inspector/profiler/heap-snapshot-test.js
@@ -697,7 +697,7 @@ InspectorTest.takeAndOpenSnapshot = function(generator, callback)
callback = InspectorTest.safeWrap(callback);
var uid = InspectorTest._nextUid++;
var snapshot = generator();
- var profileType = WebInspector.panels.profiles.getProfileType(WebInspector.HeapSnapshotProfileType.TypeId);
+ var profileType = WebInspector.ProfileTypeRegistry.instance.heapSnapshotProfileType;
var profile = new WebInspector.HeapProfileHeader(profileType, "Mock snapshot #" + uid, uid);
function pushGeneratedSnapshot(uid, callback)
{
@@ -710,7 +710,7 @@ InspectorTest.takeAndOpenSnapshot = function(generator, callback)
InspectorTest.override(HeapProfilerAgent, "getHeapSnapshot", pushGeneratedSnapshot);
InspectorTest._takeAndOpenSnapshotCallback = callback;
profileType.addProfile(profile);
- WebInspector.panels.profiles._showProfile(profile);
+ WebInspector.panels.profiles.showProfile(profile);
};
InspectorTest.viewColumns = function()
« no previous file with comments | « LayoutTests/inspector/profiler/heap-snapshot-loader.html ('k') | LayoutTests/inspector/profiler/profiler-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698