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

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

Issue 2553043003: [DevTools] Remove methods on Common.Event. (Closed)
Patch Set: rebased Created 4 years 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/HeapSnapshotProxy.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotProxy.js b/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotProxy.js
index a6ab8de1c970306f69cbef685f3f13ff081d8d55..0005305848d3852df5bdc4b39bf68d5e87c084af 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotProxy.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotProxy.js
@@ -157,7 +157,7 @@ Profiler.HeapSnapshotWorkerProxy = class extends Common.Object {
this._previousCallbacks.delete(callId);
}
var hasLongRunningCalls = !!this._previousCallbacks.size;
- this.dispatchEventToListeners('wait', hasLongRunningCalls);
+ this.dispatchEventToListeners(Profiler.HeapSnapshotWorkerProxy.Events.Wait, hasLongRunningCalls);
for (var callId of this._callbacks.keysArray())
this._previousCallbacks.add(callId);
}
@@ -193,6 +193,10 @@ Profiler.HeapSnapshotWorkerProxy = class extends Common.Object {
}
};
+Profiler.HeapSnapshotWorkerProxy.Events = {
+ Wait: Symbol('Wait')
+};
+
/**
* @unrestricted
*/

Powered by Google App Engine
This is Rietveld 408576698