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

Unified Diff: ui/file_manager/video_player/js/cast/cast_video_element.js

Issue 543103002: Video Player: refresh token when it looks expired (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/video_player/js/cast/cast_video_element.js
diff --git a/ui/file_manager/video_player/js/cast/cast_video_element.js b/ui/file_manager/video_player/js/cast/cast_video_element.js
index be1748921da6e85dba4fd6fd1440518076ce9dee..fe259209479f370acb031d39257d7c39bb241730 100644
--- a/ui/file_manager/video_player/js/cast/cast_video_element.js
+++ b/ui/file_manager/video_player/js/cast/cast_video_element.js
@@ -329,7 +329,8 @@ CastVideoElement.prototype = {
var message = JSON.parse(messageAsJson);
if (message['message'] === 'request-token') {
if (message['previousToken'] === this.token_) {
- this.mediaManager_.getToken().then(function(token) {
+ this.mediaManager_.getToken(true).then(function(token) {
+ this.token_ = token;
this.sendMessage_({message: 'push-token', token: token});
// TODO(yoshiki): Revokes the previous token.
}.bind(this)).catch(function(error) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698