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

Unified Diff: Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js

Issue 353743008: DevTools: Throttle file system refreshes on focus. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/sdk/FileSystemWorkspaceBinding.js
diff --git a/Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js b/Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js
index 2808a8e4c284ee9e0a548664287ac95dd36c3ed7..653125d2ba7613aeff622b3834e29c534673b13b 100644
--- a/Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js
+++ b/Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js
@@ -481,10 +481,11 @@ WebInspector.FileSystemWorkspaceBinding.FileSystem.prototype = {
/**
* @param {string} path
+ * @param {function()=} callback
*/
- refresh: function(path)
+ refresh: function(path, callback)
{
- this._fileSystem.requestFilesRecursive(path, this._addFile.bind(this));
+ this._fileSystem.requestFilesRecursive(path, this._addFile.bind(this), callback);
},
/**

Powered by Google App Engine
This is Rietveld 408576698