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

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

Issue 2292873003: Divide volume_manager.js into files for each classes and extract interfaces from them. (Closed)
Patch Set: Address comments. Created 4 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
Index: ui/file_manager/file_manager/background/js/launcher_search.js
diff --git a/ui/file_manager/file_manager/background/js/launcher_search.js b/ui/file_manager/file_manager/background/js/launcher_search.js
index d0bd4166e52d8983e752e023a267f2226829cd32..2c6b0a2c04ac87dd194b2fb30fdac1356677e0e1 100644
--- a/ui/file_manager/file_manager/background/js/launcher_search.js
+++ b/ui/file_manager/file_manager/background/js/launcher_search.js
@@ -117,7 +117,7 @@ LauncherSearch.prototype.onQueryStarted_ = function(queryId, query, limit) {
// initialized. In this method, chrome.fileManagerPrivate.searchDriveMetadata
// resolves url internally, and it fails if filesystem of the url is not
// initialized.
- VolumeManager.getInstance().then(function() {
+ volumeManagerFactory.getInstance().then(function() {
chrome.fileManagerPrivate.searchDriveMetadata(
{
query: query,
@@ -182,7 +182,7 @@ LauncherSearch.prototype.onOpenResult_ = function(itemId) {
// Request an instance of volume manager to ensure that all volumes are
// initialized. webkitResolveLocalFileSystemURL in util.urlToEntry fails if
// filesystem of the url is not initialized.
- VolumeManager.getInstance().then(function() {
+ volumeManagerFactory.getInstance().then(function() {
util.urlToEntry(itemId).then(function(entry) {
if (entry.isDirectory) {
// If it's directory, open the directory with file manager.

Powered by Google App Engine
This is Rietveld 408576698