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: LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html

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/cpu-profiler-profile-removal.html
diff --git a/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html b/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html
index 1a10a2df8d2b7f13c2c86c8c0cf7837a0cd38522..d372f0ce13cd8a12d81dee1b2fec212773557129 100644
--- a/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html
+++ b/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html
@@ -18,7 +18,7 @@ function test()
InspectorTest.startProfilerTest(function() {
function viewLoaded(view) {
var profiles = WebInspector.panels.profiles;
- var type = profiles.getProfileType("CPU");
+ var type = WebInspector.ProfileTypeRegistry.instance.cpuProfileType;
while (type.getProfiles().length !== 0)
type.removeProfile(type.getProfiles()[0]);
InspectorTest.addResult("Profile groups after removal:");

Powered by Google App Engine
This is Rietveld 408576698