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

Unified Diff: ui/file_manager/gallery/js/image_editor/image_util.js

Issue 310433004: Gallery.app: Update thumbnail when a file is edited on the photo editor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 7 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/gallery/js/image_editor/image_util.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_util.js b/ui/file_manager/gallery/js/image_editor/image_util.js
index bcd5696a03c51b0cd46e3fac207333bfdbb092e4..c16c64580a5b8a3c8e0871665d9ad04112ce722f 100644
--- a/ui/file_manager/gallery/js/image_editor/image_util.js
+++ b/ui/file_manager/gallery/js/image_editor/image_util.js
@@ -489,14 +489,9 @@ ImageUtil.ImageLoader.prototype.load = function(
// general error should not be specified
this.image_.onerror = onError.bind(this, 'GALLERY_IMAGE_ERROR');
- // Extract the last modification date to determine if the cached image
- // is outdated.
- var modificationTime = opt_metadata &&
- opt_metadata.modificationTime &&
- opt_metadata.modificationTime.getTime();
-
- // Load the image directly.
- this.image_.src = entry.toURL();
+ // Load the image directly. The query parameter is workaround for
+ // crbug.com/379678, which force to update the contents of the image.
+ this.image_.src = entry.toURL() + "?nocache=" + Date.now();
}.bind(this);
// Loads the image. If already loaded, then forces a reload.
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/media/media_util.js ('k') | ui/file_manager/gallery/js/image_editor/image_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698