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

Unified Diff: Source/devtools/front_end/network/NetworkTimeCalculator.js

Issue 1285183006: DevTools: WI.Throttler goes promisified. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cc
Patch Set: remove dependent patchset Created 5 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: Source/devtools/front_end/network/NetworkTimeCalculator.js
diff --git a/Source/devtools/front_end/network/NetworkTimeCalculator.js b/Source/devtools/front_end/network/NetworkTimeCalculator.js
index fcb48d74167418718a0f0f3938c3f3251f449213..71d65cfd200e0ab78214f88e206bf8c47c1b279e 100644
--- a/Source/devtools/front_end/network/NetworkTimeCalculator.js
+++ b/Source/devtools/front_end/network/NetworkTimeCalculator.js
@@ -252,7 +252,17 @@ WebInspector.NetworkTimeCalculator.prototype = {
_boundaryChanged: function()
{
- this._boundryChangedEventThrottler.schedule(this.dispatchEventToListeners.bind(this, WebInspector.NetworkTimeCalculator.Events.BoundariesChanged));
+ this._boundryChangedEventThrottler.schedule(dispatchEvent.bind(this));
+
+ /**
+ * @return {!Promise.<undefined>}
+ * @this {WebInspector.NetworkTimeCalculator}
+ */
+ function dispatchEvent()
+ {
+ this.dispatchEventToListeners(WebInspector.NetworkTimeCalculator.Events.BoundariesChanged);
+ return Promise.resolve();
+ }
},
/**
« no previous file with comments | « Source/devtools/front_end/emulation/ResponsiveDesignView.js ('k') | Source/devtools/front_end/platform/utilities.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698