Commit 575c4a23 authored by kinaba@chromium.org's avatar kinaba@chromium.org

Files.app: fix a bug that low-space warning is not shown at all.

fileBrowserPrivate.getSizeStats takes volumeId as the argument,
not the root URL.

BUG=350101

Review URL: https://codereview.chromium.org/218623020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261444 0039d316-1c4b-4281-b951-d872f2087c98
parent b2010001
...@@ -521,7 +521,7 @@ FileListBannerController.prototype.maybeShowLowSpaceWarning_ = function( ...@@ -521,7 +521,7 @@ FileListBannerController.prototype.maybeShowLowSpaceWarning_ = function(
return; return;
chrome.fileBrowserPrivate.getSizeStats( chrome.fileBrowserPrivate.getSizeStats(
volume.fileSystem.root.toURL(), volume.volumeId,
function(sizeStats) { function(sizeStats) {
var currentVolume = this.volumeManager_.getVolumeInfo( var currentVolume = this.volumeManager_.getVolumeInfo(
this.directoryModel_.getCurrentDirEntry()); this.directoryModel_.getCurrentDirEntry());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment