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

Unified Diff: ui/file_manager/file_manager/background/js/volume_manager_util.js

Issue 2584443002: Files app: Make the timeout duration for resolveIsolatedEntries() shorter. (Closed)
Patch Set: Update a comment about timeout. Created 4 years 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: ui/file_manager/file_manager/background/js/volume_manager_util.js
diff --git a/ui/file_manager/file_manager/background/js/volume_manager_util.js b/ui/file_manager/file_manager/background/js/volume_manager_util.js
index 5362efc2f71629b5816295b5fc20ab00433dd271..ec6abc25bd2c21726506e2ba62b7effee6481937 100644
--- a/ui/file_manager/file_manager/background/js/volume_manager_util.js
+++ b/ui/file_manager/file_manager/background/js/volume_manager_util.js
@@ -8,13 +8,21 @@
var volumeManagerUtil = {};
/**
- * Time in milliseconds that we wait a response for. If no response on
+ * Time in milliseconds that we wait a response for general volume operations
+ * such as mount, unmount, and requestFileSystem. If no response on
* mount/unmount received the request supposed failed.
* @const {number}
*/
volumeManagerUtil.TIMEOUT = 15 * 60 * 1000;
/**
+ * Time in milliseconds that we wait a response for
+ * chrome.fileManagerPrivate.resolveIsolatedEntries.
+ * @const {number}
+ */
+volumeManagerUtil.TIMEOUT_FOR_RESOLVE_ISOLATED_ENTRIES = 1 * 60 * 1000;
+
+/**
* @const {string}
*/
volumeManagerUtil.TIMEOUT_STR_REQUEST_FILE_SYSTEM =
@@ -102,7 +110,7 @@ volumeManagerUtil.createVolumeInfo = function(volumeMetadata) {
resolve(entries[0].filesystem);
});
}),
- volumeManagerUtil.TIMEOUT,
+ volumeManagerUtil.TIMEOUT_FOR_RESOLVE_ISOLATED_ENTRIES,
volumeManagerUtil.TIMEOUT_STR_RESOLVE_ISOLATED_ENTRIES +
': ' + volumeMetadata.volumeId);
})
« 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