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

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

Issue 2560553004: Revert of [DevTools] Remove methods on Common.Event. (Closed)
Patch Set: 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 0005305848d3852df5bdc4b39bf68d5e87c084af..a6ab8de1c970306f69cbef685f3f13ff081d8d55 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 @@
this._previousCallbacks.delete(callId);
}
var hasLongRunningCalls = !!this._previousCallbacks.size;
- this.dispatchEventToListeners(Profiler.HeapSnapshotWorkerProxy.Events.Wait, hasLongRunningCalls);
+ this.dispatchEventToListeners('wait', hasLongRunningCalls);
for (var callId of this._callbacks.keysArray())
this._previousCallbacks.add(callId);
}
@@ -191,10 +191,6 @@
_postMessage(message) {
this._worker.postMessage(message);
}
-};
-
-Profiler.HeapSnapshotWorkerProxy.Events = {
- Wait: Symbol('Wait')
};
/**

Powered by Google App Engine
This is Rietveld 408576698