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

Unified Diff: ui/file_manager/externs/background/volume_manager_factory.js

Issue 2883263002: Stop foreground depending on background in gyp v2 (Closed)
Patch Set: Remove private Created 3 years, 7 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
Index: ui/file_manager/externs/background/volume_manager_factory.js
diff --git a/ui/file_manager/externs/background/volume_manager_factory.js b/ui/file_manager/externs/background/volume_manager_factory.js
new file mode 100644
index 0000000000000000000000000000000000000000..cebb971fca892ed9fa6cd5f4a4f26b21f2a76845
--- /dev/null
+++ b/ui/file_manager/externs/background/volume_manager_factory.js
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
fukino 2017/05/17 04:58:56 Do we need this file in addition to background_win
oka 2017/05/17 08:45:42 Good catch. Just renamed background_window_common.
+var volumeManagerFactory = {
+ /**
+ * Returns the VolumeManager instance asynchronously. If it has not been
+ * created or is under initialization, it will waits for the finish of the
+ * initialization.
+ * @param {function(VolumeManager)=} opt_callback Called with the
+ * VolumeManager instance. TODO(hirono): Remove the callback and use
+ * Promise instead.
+ * @return {Promise} Promise to be fulfilled with the volume manager.
+ */
+ getInstance: function(opt_callback) {},
+
+ /**
+ * Returns instance of VolumeManager for debug purpose.
+ * This method returns VolumeManager.instance which may not be initialized.
+ *
+ * @return {VolumeManager} Volume manager.
+ */
+ getInstanceForDebug: function() {},
+
+ /**
+ * Revokes the singleton instance for testing.
+ */
+ revokeInstanceForTesting: function() {}
+};

Powered by Google App Engine
This is Rietveld 408576698