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

Unified Diff: chrome/browser/resources/file_manager/audio_player/js/audio_player.js

Issue 165983002: [AudioPlayer] Regenerate play order when is is insufficient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adressed the comment Created 6 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: chrome/browser/resources/file_manager/audio_player/js/audio_player.js
diff --git a/chrome/browser/resources/file_manager/audio_player/js/audio_player.js b/chrome/browser/resources/file_manager/audio_player/js/audio_player.js
index 861a12a53e5751c3bdfc6c305882bb4296004575..376d226c27efc47a227485aef3574876f881be45 100644
--- a/chrome/browser/resources/file_manager/audio_player/js/audio_player.js
+++ b/chrome/browser/resources/file_manager/audio_player/js/audio_player.js
@@ -121,6 +121,10 @@ AudioPlayer.prototype.load = function(playlist) {
this.trackListItems_.push(new AudioPlayer.TrackInfo(entry, onClick));
}
+ // Makes it sure that the handler of the track list is called, before the
+ // handler of the track index.
+ Platform.performMicrotaskCheckpoint();
+
this.select_(position, !!time);
// Load the selected track metadata first, then load the rest.

Powered by Google App Engine
This is Rietveld 408576698