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

Side by Side Diff: ui/file_manager/video_player/js/cast/media_manager.js

Issue 676633002: Remove file-level 'use strict' from file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 'use strict';
6
7 /** 5 /**
8 * Media manager class. 6 * Media manager class.
9 * This class supports the information for the media file. 7 * This class supports the information for the media file.
10 * @param {FileEntry} entry Entry of media file. This must be a external entry. 8 * @param {FileEntry} entry Entry of media file. This must be a external entry.
11 * @constructor 9 * @constructor
12 */ 10 */
13 function MediaManager(entry) { 11 function MediaManager(entry) {
14 this.entry_ = entry; 12 this.entry_ = entry;
15 13
16 this.cachedDriveProp_ = null; 14 this.cachedDriveProp_ = null;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 [this.entry_.toURL()], fulfill); 133 [this.entry_.toURL()], fulfill);
136 }.bind(this)).then(function(props) { 134 }.bind(this)).then(function(props) {
137 if (!props || !props[0]) { 135 if (!props || !props[0]) {
138 return Promise.reject('Thumbnail fetch failed.'); 136 return Promise.reject('Thumbnail fetch failed.');
139 } else { 137 } else {
140 this.cachedDriveProp_ = props[0]; 138 this.cachedDriveProp_ = props[0];
141 return props[0].thumbnailUrl || ''; 139 return props[0].thumbnailUrl || '';
142 } 140 }
143 }.bind(this)); 141 }.bind(this));
144 }; 142 };
OLDNEW
« no previous file with comments | « ui/file_manager/video_player/js/cast/caster.js ('k') | ui/file_manager/video_player/js/error_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698