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

Unified Diff: Source/devtools/front_end/sdk/ContentProviderBasedProjectDelegate.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
« no previous file with comments | « no previous file | Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/ContentProviderBasedProjectDelegate.js
diff --git a/Source/devtools/front_end/sdk/ContentProviderBasedProjectDelegate.js b/Source/devtools/front_end/sdk/ContentProviderBasedProjectDelegate.js
index 528c31d8a6da6e60adb57fe83bb7c2f63ff02ab5..562e718b8bd3ba4a1eb53c055b315f0cf639f0f5 100644
--- a/Source/devtools/front_end/sdk/ContentProviderBasedProjectDelegate.js
+++ b/Source/devtools/front_end/sdk/ContentProviderBasedProjectDelegate.js
@@ -142,9 +142,12 @@ WebInspector.ContentProviderBasedProjectDelegate.prototype = {
/**
* @param {string} path
+ * @param {function()=} callback
*/
- refresh: function(path)
+ refresh: function(path, callback)
{
+ if (callback)
+ callback();
},
/**
« no previous file with comments | « no previous file | Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698