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

Unified Diff: chrome/browser/resources/file_manager/js/directory_tree.js

Issue 23636014: [Files.app] Use generateTopLevelEntries() method to retrieve the list on the top level (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
« 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: chrome/browser/resources/file_manager/js/directory_tree.js
diff --git a/chrome/browser/resources/file_manager/js/directory_tree.js b/chrome/browser/resources/file_manager/js/directory_tree.js
index a41502a2dd45738c4a8b87f7620e87587caf5737..ab2bca2624fdb3e5daaea9f7f2aab4b7388e22cc 100644
--- a/chrome/browser/resources/file_manager/js/directory_tree.js
+++ b/chrome/browser/resources/file_manager/js/directory_tree.js
@@ -596,16 +596,10 @@ DirectoryTree.prototype.maybeResolveMyDriveRoot_ = function(
*/
DirectoryTree.prototype.updateSubDirectories = function(
recursive, opt_successCallback, opt_errorCallback) {
hirono 2013/09/10 00:51:13 opt_errorCallback will not be called. Can we remov
yoshiki 2013/09/10 01:01:01 I want to keep the same interface with DirectoryIt
- var myDriveItem = this.items[0];
- DirectoryTreeUtil.updateSubDirectories(
- myDriveItem,
- function(entries) {
- this.entries_ = entries;
- this.redraw(recursive);
- if (opt_successCallback)
- opt_successCallback();
- }.bind(this),
- opt_errorCallback);
+ this.entries_ = DirectoryTreeUtil.generateTopLevelEntries();
+ this.redraw(recursive);
+ if (opt_successCallback)
+ opt_successCallback();
};
/**
« 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