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

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

Issue 2261933002: DevTools: Use JS symbols instead of strings for eligible events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/HeapProfilerModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/HeapProfilerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/HeapProfilerModel.js
index 2b632434f0d569f22f8bbb7cfdaeb7e7812d0a17..cd64dd4d4071ae05603300f0efe23bcbd6b5b8a1 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/HeapProfilerModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/HeapProfilerModel.js
@@ -11,12 +11,13 @@ WebInspector.HeapProfilerModel = function(target)
this._heapProfilerAgent = target.heapProfilerAgent();
}
+/** @enum {symbol} */
WebInspector.HeapProfilerModel.Events = {
- HeapStatsUpdate: "HeapStatsUpdate",
- LastSeenObjectId: "LastSeenObjectId",
- AddHeapSnapshotChunk: "AddHeapSnapshotChunk",
- ReportHeapSnapshotProgress: "ReportHeapSnapshotProgress",
- ResetProfiles: "ResetProfiles"
+ HeapStatsUpdate: Symbol("HeapStatsUpdate"),
+ LastSeenObjectId: Symbol("LastSeenObjectId"),
+ AddHeapSnapshotChunk: Symbol("AddHeapSnapshotChunk"),
+ ReportHeapSnapshotProgress: Symbol("ReportHeapSnapshotProgress"),
+ ResetProfiles: Symbol("ResetProfiles")
}
WebInspector.HeapProfilerModel.prototype = {

Powered by Google App Engine
This is Rietveld 408576698