diff options
author | hirono <hirono@chromium.org> | 2016-02-17 18:39:52 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-18 02:40:53 +0000 |
commit | e820f8581d44df14269df140fc71d70adde7262b (patch) | |
tree | a25d883002e5d63cf63fa1d4b041304961fa6108 /ui/file_manager/audio_player | |
parent | 1e98e71f2553af527d1c1641e55fa26fb3076396 (diff) | |
download | chromium_src-e820f8581d44df14269df140fc71d70adde7262b.zip chromium_src-e820f8581d44df14269df140fc71d70adde7262b.tar.gz chromium_src-e820f8581d44df14269df140fc71d70adde7262b.tar.bz2 |
Hide non-native volumes when saving files from the browser.
Chrome browser opens Files app as a file saving dialog. The caller of saving
dialog has a special handling for drive paths, but it does not handle other
non-native paths (e.g. FSP, MTP)
The CL lets Files app know which types of paths are handled by caller and hide
volumes that are not supported by caller.
BUG=581984
TEST=Check with standalone Files app, save dialog, open dialog
Review URL: https://codereview.chromium.org/1701163003
Cr-Commit-Position: refs/heads/master@{#376073}
Diffstat (limited to 'ui/file_manager/audio_player')
-rw-r--r-- | ui/file_manager/audio_player/js/audio_player.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/file_manager/audio_player/js/audio_player.js b/ui/file_manager/audio_player/js/audio_player.js index 4c25498..8241903 100644 --- a/ui/file_manager/audio_player/js/audio_player.js +++ b/ui/file_manager/audio_player/js/audio_player.js @@ -14,8 +14,7 @@ ContentMetadataProvider.WORKER_SCRIPT = '/js/metadata_worker.js'; */ function AudioPlayer(container) { this.container_ = container; - this.volumeManager_ = new VolumeManagerWrapper( - VolumeManagerWrapper.NonNativeVolumeStatus.ENABLED); + this.volumeManager_ = new VolumeManagerWrapper(AllowedPaths.ANY_PATH); this.metadataModel_ = MetadataModel.create(this.volumeManager_); this.selectedEntry_ = null; this.invalidTracks_ = {}; |