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

Unified Diff: chrome/browser/resources/file_manager/foreground/js/directory_model.js

Issue 135753003: Get rid of the fake Drive/root entry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 11 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: chrome/browser/resources/file_manager/foreground/js/directory_model.js
diff --git a/chrome/browser/resources/file_manager/foreground/js/directory_model.js b/chrome/browser/resources/file_manager/foreground/js/directory_model.js
index 1ddaf388a72480c30f3a2760e568640ab65f7140..f22a6a9f08c033579418ca251e07df42d507bee2 100644
--- a/chrome/browser/resources/file_manager/foreground/js/directory_model.js
+++ b/chrome/browser/resources/file_manager/foreground/js/directory_model.js
@@ -1036,10 +1036,8 @@ DirectoryModel.prototype.specialSearch = function(path, opt_query) {
this.dispatchEvent(e);
}.bind(this, this.changeDirectorySequence_);
- // TODO(hirono): We don't need to obtain the drive root to search.
- this.resolveDirectory(volumeInfo.fakeEntries[RootType.DRIVE].fullPath,
- onDriveDirectoryResolved /* success */,
- function() {} /* failed */);
+ volumeInfo.resolveDisplayRoot(
+ onDriveDirectoryResolved /* success */, function() {} /* failed */);
};
/**

Powered by Google App Engine
This is Rietveld 408576698