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

Unified Diff: ui/file_manager/file_manager/common/js/mock_entry.js

Issue 795833002: MediaScanner improvements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pull 'n merge. Created 6 years 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/common/js/mock_entry.js
diff --git a/ui/file_manager/file_manager/common/js/mock_entry.js b/ui/file_manager/file_manager/common/js/mock_entry.js
index c3f30d5ff43edd7110e91205db258773de823e3d..01b5815e26964e59cbd3776833d00e85d9a95dd5 100644
--- a/ui/file_manager/file_manager/common/js/mock_entry.js
+++ b/ui/file_manager/file_manager/common/js/mock_entry.js
@@ -176,7 +176,7 @@ MockEntry.prototype.clone = function(fullpath) {
*/
function MockFileEntry(filesystem, fullPath, metadata) {
MockEntry.call(this, filesystem, fullPath);
- this.metadata_ = metadata;
+ this.metadata = metadata;
this.isFile = true;
this.isDirectory = false;
}
@@ -187,14 +187,16 @@ MockFileEntry.prototype = {
/**
* Obtains metadata of the entry.
- * @param {function(Object)} callback Function to take the metadata.
+ *
+ * @param {function(!Metadata)} onSuccess Function to take the metadata.
+ * @param {function(Error)} onError
*/
MockFileEntry.prototype.getMetadata = function(onSuccess, onError) {
new Promise(function(fulfill, reject) {
if (this.filesystem && !this.filesystem.entries[this.fullPath])
reject(new DOMError('NotFoundError'));
else
- onSuccess(this.metadata_);
+ onSuccess(this.metadata);
}.bind(this)).then(onSuccess, onError);
};

Powered by Google App Engine
This is Rietveld 408576698