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

Unified Diff: Source/devtools/front_end/bindings/WorkspaceController.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/bindings/WorkspaceController.js
diff --git a/Source/devtools/front_end/bindings/WorkspaceController.js b/Source/devtools/front_end/bindings/WorkspaceController.js
index 55530d25d415031e28a33885a8f27d98523f48ff..495aee650f9e57040f478c44d5abbb96725aa424 100644
--- a/Source/devtools/front_end/bindings/WorkspaceController.js
+++ b/Source/devtools/front_end/bindings/WorkspaceController.js
@@ -50,15 +50,14 @@ WebInspector.WorkspaceController.prototype = {
/**
* @this {WebInspector.WorkspaceController}
- * @param {!WebInspector.Throttler.FinishCallback} callback
*/
- function refreshFileSystems(callback)
+ function refreshFileSystems()
{
var barrier = new CallbackBarrier();
var projects = this._workspace.projects();
for (var i = 0; i < projects.length; ++i)
projects[i].refresh("/", barrier.createCallback());
- barrier.callWhenDone(callback);
+ return barrier.donePromise();
}
}
}
« no previous file with comments | « Source/devtools/front_end/bindings/StylesSourceMapping.js ('k') | Source/devtools/front_end/common/Throttler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698