Skip to content

Commit

Permalink
file_manager: GUEST_OS volumes are counted as local volumes
Browse files Browse the repository at this point in the history
Bug: b:242127311
Test: Save-as in Chrome

Change-Id: I786730d467406d19762521de907d141f13622e6b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3824943
Reviewed-by: Luciano Pacheco <lucmult@chromium.org>
Commit-Queue: David Munro <davidmunro@google.com>
Auto-Submit: David Munro <davidmunro@google.com>
Cr-Commit-Position: refs/heads/main@{#1034976}
  • Loading branch information
David Munro authored and Chromium LUCI CQ committed Aug 15, 2022
1 parent ca758f1 commit 2f24cb1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ VolumeManagerCommon.VolumeType.isNative = type => {
type === VolumeManagerCommon.VolumeType.DRIVE ||
type === VolumeManagerCommon.VolumeType.ANDROID_FILES ||
type === VolumeManagerCommon.VolumeType.CROSTINI ||
type === VolumeManagerCommon.VolumeType.GUEST_OS ||
type === VolumeManagerCommon.VolumeType.REMOVABLE ||
type === VolumeManagerCommon.VolumeType.ARCHIVE ||
type === VolumeManagerCommon.VolumeType.SMB;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3098,6 +3098,8 @@ CommandHandler.COMMANDS_['volume-storage'] = new (class extends FilesCommand {
VolumeManagerCommon.VolumeType.DOWNLOADS ||
currentVolumeInfo.volumeType ==
VolumeManagerCommon.VolumeType.CROSTINI ||
currentVolumeInfo.volumeType ==
VolumeManagerCommon.VolumeType.GUEST_OS ||
currentVolumeInfo.volumeType ==
VolumeManagerCommon.VolumeType.ANDROID_FILES ||
currentVolumeInfo.volumeType ==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class HoldingSpaceUtil {
return [
VolumeManagerCommon.VolumeType.ANDROID_FILES,
VolumeManagerCommon.VolumeType.CROSTINI,
VolumeManagerCommon.VolumeType.GUEST_OS,
VolumeManagerCommon.VolumeType.DRIVE,
VolumeManagerCommon.VolumeType.DOWNLOADS,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ QuickViewController.LOCAL_VOLUME_TYPES_ = [
VolumeManagerCommon.VolumeType.REMOVABLE,
VolumeManagerCommon.VolumeType.ANDROID_FILES,
VolumeManagerCommon.VolumeType.CROSTINI,
VolumeManagerCommon.VolumeType.GUEST_OS,
VolumeManagerCommon.VolumeType.MEDIA_VIEW,
VolumeManagerCommon.VolumeType.DOCUMENTS_PROVIDER,
VolumeManagerCommon.VolumeType.SMB,
Expand Down

0 comments on commit 2f24cb1

Please sign in to comment.