Chromium Code Reviews| Index: ui/file_manager/file_manager/background/js/volume_manager.js |
| diff --git a/ui/file_manager/file_manager/background/js/volume_manager.js b/ui/file_manager/file_manager/background/js/volume_manager.js |
| index 9e3f2aa35858077f0d35b45f0ee2d6aa27dfb91d..9528b8c2839335e2465f2c64dc06d62642e30658 100644 |
| --- a/ui/file_manager/file_manager/background/js/volume_manager.js |
| +++ b/ui/file_manager/file_manager/background/js/volume_manager.js |
| @@ -503,13 +503,6 @@ VolumeManager.prototype.__proto__ = cr.EventTarget.prototype; |
| VolumeManager.TIMEOUT = 15 * 60 * 1000; |
| /** |
| - * Queue to run getInstance sequentially. |
| - * @type {AsyncUtil.Queue} |
| - * @private |
| - */ |
| -VolumeManager.getInstanceQueue_ = new AsyncUtil.Queue(); |
| - |
| -/** |
| * The singleton instance of VolumeManager. Initialized by the first invocation |
| * of getInstance(). |
| * @type {VolumeManager} |
| @@ -555,6 +548,14 @@ VolumeManager.getInstance = function(opt_callback) { |
| }; |
| /** |
| + * Revokes an instance for testing. |
|
hirono
2014/10/29 10:02:46
very nit: "an" -> "the"
Maybe "the singleton" is m
yawano
2014/10/30 09:11:47
Done.
|
| + */ |
| +VolumeManager.revokeInstanceForTesting = function() { |
| + VolumeManager.instancePromise_ = null; |
| + VolumeManager.instance_ = null; |
| +} |
| + |
| +/** |
| * Initializes mount points. |
| * @param {function()} callback Called upon the completion of the |
| * initialization. |