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

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

Issue 571453002: Correct indentation, JSDoc, etc... to comply with closure linter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
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 ccbc342f5dbb6f133fe92d3e5dff1b3d881ffd3e..fd3f4b60c4684fecf4c32897c1752eee2696eadb 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
@@ -121,8 +121,8 @@ CastVideoElement.prototype = {
if (!this.castMedia_)
return true;
- return !this.playInProgress &&
- this.castMedia_.idleReason === chrome.cast.media.IdleReason.FINISHED;
+ return !this.playInProgress &&
+ this.castMedia_.idleReason === chrome.cast.media.IdleReason.FINISHED;
},
/**
@@ -343,16 +343,16 @@ CastVideoElement.prototype = {
var message = JSON.parse(messageAsJson);
if (message['message'] === 'request-token') {
if (message['previousToken'] === this.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) {
- // Send an empty token as an error.
- this.sendMessage_({message: 'push-token', token: ''});
- // TODO(yoshiki): Revokes the previous token.
- console.error(error.stack || error);
- });
+ 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) {
+ // Send an empty token as an error.
+ this.sendMessage_({message: 'push-token', token: ''});
+ // TODO(yoshiki): Revokes the previous token.
+ console.error(error.stack || error);
+ });
} else {
console.error(
'New token is requested, but the previous token mismatches.');
« no previous file with comments | « ui/file_manager/video_player/js/cast/cast_extension_discoverer.js ('k') | ui/file_manager/video_player/js/cast/caster.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698