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

Unified Diff: ui/file_manager/file_manager/foreground/js/metadata/thumbnail_model.js

Issue 932343003: Files.app: Move ContentMetadataProvider from ThumbnailModel to FileSystemMetadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 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: ui/file_manager/file_manager/foreground/js/metadata/thumbnail_model.js
diff --git a/ui/file_manager/file_manager/foreground/js/metadata/thumbnail_model.js b/ui/file_manager/file_manager/foreground/js/metadata/thumbnail_model.js
index a942a29b114a6182e7f8f722ac0307d4014964c1..16f4a5f9f09de1d1ee17d7379ddb6f69983e4389 100644
--- a/ui/file_manager/file_manager/foreground/js/metadata/thumbnail_model.js
+++ b/ui/file_manager/file_manager/foreground/js/metadata/thumbnail_model.js
@@ -4,24 +4,15 @@
/**
* @param {!FileSystemMetadata} fileSystemMetadata
- * @param {!ContentMetadataProvider} contentMetadataProvider
* @struct
* @constructor
*/
-function ThumbnailModel(
- fileSystemMetadata,
- contentMetadataProvider) {
+function ThumbnailModel(fileSystemMetadata) {
/**
* @private {!FileSystemMetadata}
* @const
*/
this.fileSystemMetadata_ = fileSystemMetadata;
-
- /**
- * @private {!ContentMetadataProvider}
- * @const
- */
- this.contentMetadataProvider_ = contentMetadataProvider;
}
/**
@@ -62,7 +53,7 @@ ThumbnailModel.prototype.get = function(entries) {
contentRequestEntries.push(entries[i]);
}
if (contentRequestEntries.length) {
- return this.contentMetadataProvider_.get(
+ return this.fileSystemMetadata_.get(
contentRequestEntries,
[
'contentThumbnailUrl',

Powered by Google App Engine
This is Rietveld 408576698