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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystemManager.js

Issue 1365443004: DevTools: remove unnecessary asynchrony from isolated filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 years, 3 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 | « third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystem.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystemManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystemManager.js b/third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystemManager.js
index 6066615b44ec6b5a88d655330a4ac1fa4766c118..7b2baa3a224719992836b76111733e0f7e6c5f7b 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystemManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystemManager.js
@@ -36,8 +36,6 @@ WebInspector.IsolatedFileSystemManager = function()
{
/** @type {!Object.<string, !WebInspector.IsolatedFileSystem>} */
this._fileSystems = {};
- /** @type {!Object.<string, !Array.<function(?DOMFileSystem)>>} */
- this._pendingFileSystemRequests = {};
this._excludedFolderManager = new WebInspector.ExcludedFolderManager();
InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.FileSystemsLoaded, this._onFileSystemsLoaded, this);
@@ -101,7 +99,6 @@ WebInspector.IsolatedFileSystemManager.prototype = {
this._initializeCallback();
delete this._initializeCallback;
- this._processPendingFileSystemRequests();
},
/**
@@ -115,16 +112,6 @@ WebInspector.IsolatedFileSystemManager.prototype = {
this.dispatchEventToListeners(WebInspector.IsolatedFileSystemManager.Events.FileSystemAdded, isolatedFileSystem);
},
- _processPendingFileSystemRequests: function()
- {
- for (var fileSystemPath in this._pendingFileSystemRequests) {
- var callbacks = this._pendingFileSystemRequests[fileSystemPath];
- for (var i = 0; i < callbacks.length; ++i)
- callbacks[i](this._isolatedFileSystem(fileSystemPath));
- }
- delete this._pendingFileSystemRequests;
- },
-
/**
* @param {!WebInspector.Event} event
*/
@@ -159,35 +146,6 @@ WebInspector.IsolatedFileSystemManager.prototype = {
},
/**
- * @param {string} fileSystemPath
- * @return {?DOMFileSystem}
- */
- _isolatedFileSystem: function(fileSystemPath)
- {
- var fileSystem = this._fileSystems[fileSystemPath];
- if (!fileSystem)
- return null;
- if (!InspectorFrontendHost.isolatedFileSystem)
- return null;
- return InspectorFrontendHost.isolatedFileSystem(fileSystem.name(), fileSystem.rootURL());
- },
-
- /**
- * @param {string} fileSystemPath
- * @param {function(?DOMFileSystem)} callback
- */
- requestDOMFileSystem: function(fileSystemPath, callback)
- {
- if (!this._loaded) {
- if (!this._pendingFileSystemRequests[fileSystemPath])
- this._pendingFileSystemRequests[fileSystemPath] = this._pendingFileSystemRequests[fileSystemPath] || [];
- this._pendingFileSystemRequests[fileSystemPath].push(callback);
- return;
- }
- callback(this._isolatedFileSystem(fileSystemPath));
- },
-
- /**
* @return {!Array<string>}
*/
fileSystemPaths: function()
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystem.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698