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

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

Issue 522533003: [fsp] Remove the unused streaming field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/file_manager/audio_player/js/audio_player.js
diff --git a/ui/file_manager/file_manager/audio_player/js/audio_player.js b/ui/file_manager/file_manager/audio_player/js/audio_player.js
index 55eef285469e54f085100c131385b213af387911..b0ece1c977ac2cbed7359761a9bfbc744db1ab68 100644
--- a/ui/file_manager/file_manager/audio_player/js/audio_player.js
+++ b/ui/file_manager/file_manager/audio_player/js/audio_player.js
@@ -223,7 +223,7 @@ AudioPlayer.prototype.select_ = function(newTrack) {
* @private
*/
AudioPlayer.prototype.fetchMetadata_ = function(entry, callback) {
- this.metadataCache_.getOne(entry, 'thumbnail|media|streaming',
+ this.metadataCache_.getOne(entry, 'thumbnail|media|drive',
function(generation, metadata) {
// Do nothing if another load happened since the metadata request.
if (this.playlistGeneration_ == generation)
@@ -243,7 +243,7 @@ AudioPlayer.prototype.onError_ = function() {
this.fetchMetadata_(
this.entries_[track],
function(metadata) {
- var error = (!navigator.onLine && metadata.streaming) ?
+ var error = (!navigator.onLine && !metadata.drive.present) ?
this.offlineString_ : this.errorString_;
this.displayMetadata_(track, metadata, error);
this.scheduleAutoAdvance_();

Powered by Google App Engine
This is Rietveld 408576698