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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2457723004: DevTools: do not wait for filesystems to create connection. (Closed)
Patch Set: Created 4 years, 2 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 | 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/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index 63c929dc42a5d71e0987049992f3c8e248a06bc6..3f3718a4cf9792de8f0fba5bef3f0ad0028f1309 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -140,8 +140,6 @@ WebInspector.Main.prototype = {
// Request filesystems early, we won't create connections until callback is fired. Things will happen in parallel.
WebInspector.isolatedFileSystemManager = new WebInspector.IsolatedFileSystemManager();
- WebInspector.isolatedFileSystemManager.waitForFileSystems()
- .then(this._didInitializeFileSystemManager.bind(this));
var themeSetting = WebInspector.settings.createSetting("uiTheme", "default");
WebInspector.initializeUIUtils(document, themeSetting);
@@ -250,21 +248,11 @@ WebInspector.Main.prototype = {
handler.handleQueryParam(value);
}
- this._appUIShown = true;
- if (this._fileSystemManagerInitialized) {
- // Allow UI cycles to repaint prior to creating connection.
- setTimeout(this._initializeTarget.bind(this), 0);
- }
+ // Allow UI cycles to repaint prior to creating connection.
+ setTimeout(this._initializeTarget.bind(this), 0);
console.timeEnd("Main._showAppUI");
},
- _didInitializeFileSystemManager: function()
- {
- this._fileSystemManagerInitialized = true;
- if (this._appUIShown)
- this._initializeTarget();
- },
-
_initializeTarget: function()
{
console.time("Main._initializeTarget");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698