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

Unified Diff: ui/file_manager/gallery/js/gallery_data_model.js

Issue 971173002: Gallery: Start to use new metadata model in Gallery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. 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
« no previous file with comments | « ui/file_manager/gallery/js/gallery.js ('k') | ui/file_manager/gallery/js/gallery_item.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/gallery_data_model.js
diff --git a/ui/file_manager/gallery/js/gallery_data_model.js b/ui/file_manager/gallery/js/gallery_data_model.js
index f9f3287c8cede811153a5a0d40ff01ba1aaa238e..0fa54b5efe4a6b131e247e9762dd34cbdacfe46e 100644
--- a/ui/file_manager/gallery/js/gallery_data_model.js
+++ b/ui/file_manager/gallery/js/gallery_data_model.js
@@ -73,6 +73,7 @@ GalleryDataModel.prototype.saveItem = function(
volumeManager, item, canvas, overwrite) {
var oldEntry = item.getEntry();
var oldMetadata = item.getMetadata();
+ var oldMetadataItem = item.getMetadataItem();
var oldLocationInfo = item.getLocationInfo();
return new Promise(function(fulfill, reject) {
item.saveToFile(
@@ -101,6 +102,7 @@ GalleryDataModel.prototype.saveItem = function(
oldEntry,
oldLocationInfo,
oldMetadata,
+ oldMetadataItem,
this.metadataCache_,
this.metadataModel_,
item.isOriginal());
« no previous file with comments | « ui/file_manager/gallery/js/gallery.js ('k') | ui/file_manager/gallery/js/gallery_item.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698