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

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

Issue 179553008: Simplify volume manager in Files app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unmounting. Created 6 years, 10 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/drive_banners.js
diff --git a/chrome/browser/resources/file_manager/foreground/js/drive_banners.js b/chrome/browser/resources/file_manager/foreground/js/drive_banners.js
index 087a5ff10fcbc6c7d751f3319bac9a921445dd4a..86edb130d5208e09d9a288991ab95f5f313bf89b 100644
--- a/chrome/browser/resources/file_manager/foreground/js/drive_banners.js
+++ b/chrome/browser/resources/file_manager/foreground/js/drive_banners.js
@@ -517,11 +517,11 @@ FileListBannerController.prototype.maybeShowLowSpaceWarning_ = function(
}
// If not mounted correctly, then do not continue.
- if (!volume.root)
+ if (!volume.fileSystem)
return;
chrome.fileBrowserPrivate.getSizeStats(
- volume.root.toURL(),
+ volume.fileSystem.root.toURL(),
function(sizeStats) {
var currentVolume = this.volumeManager_.getVolumeInfo(
this.directoryModel_.getCurrentDirEntry());

Powered by Google App Engine
This is Rietveld 408576698