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

Unified Diff: ui/file_manager/audio_player/js/audio_player.js

Issue 971723002: Files.app: Rename FileSystemMetadata with MetadataModel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 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: ui/file_manager/audio_player/js/audio_player.js
diff --git a/ui/file_manager/audio_player/js/audio_player.js b/ui/file_manager/audio_player/js/audio_player.js
index 3bc165b757ce6f9828d55a76d2092253c667062e..a4d81efd71d89fe48d945e5b78e8d2b31b871d17 100644
--- a/ui/file_manager/audio_player/js/audio_player.js
+++ b/ui/file_manager/audio_player/js/audio_player.js
@@ -17,7 +17,7 @@ function AudioPlayer(container) {
this.container_ = container;
this.volumeManager_ = new VolumeManagerWrapper(
VolumeManagerWrapper.DriveEnabledStatus.DRIVE_ENABLED);
- this.fileSystemMetadata_ = new FileSystemMetadata(this.volumeManager_);
+ this.metadataModel_ = new MetadataModel.create(this.volumeManager_);
this.selectedEntry_ = null;
this.model_ = new AudioPlayerModel();
@@ -237,7 +237,7 @@ AudioPlayer.prototype.select_ = function(newTrack, time) {
* @private
*/
AudioPlayer.prototype.fetchMetadata_ = function(entry, callback) {
- this.fileSystemMetadata_.get(
+ this.metadataModel_.get(
[entry], ['mediaTitle', 'mediaArtist', 'present']).then(
function(generation, metadata) {
// Do nothing if another load happened since the metadata request.
« no previous file with comments | « ui/file_manager/audio_player/audio_player.html ('k') | ui/file_manager/audio_player/js/audio_player_scripts.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698