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

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

Issue 12716015: filemanager: Files App change necessary to use "drive/root". It still works with "drive". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments. Created 7 years, 9 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/js/drive_banners.js
diff --git a/chrome/browser/resources/file_manager/js/drive_banners.js b/chrome/browser/resources/file_manager/js/drive_banners.js
index 19bc0051196844d172511eea0f5bfaa78812c61f..46508117072dad45cd11338870ef3fa4c667f2c4 100644
--- a/chrome/browser/resources/file_manager/js/drive_banners.js
+++ b/chrome/browser/resources/file_manager/js/drive_banners.js
@@ -364,7 +364,7 @@ FileListBannerController.prototype.checkFreeSpace_ = function(currentPath) {
};
// TODO(kaznacheev): Unify the two low space warning.
- var root = PathUtil.getRootPath(currentPath);
+ var root = PathUtil.getTopDirectory(currentPath);
if (root === RootDirectory.DOWNLOADS) {
scheduleCheck(500, root, 0.2);
this.showLowDriveSpaceWarning_(false);
« no previous file with comments | « chrome/browser/resources/file_manager/js/directory_model.js ('k') | chrome/browser/resources/file_manager/js/file_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698