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

Unified Diff: ui/file_manager/image_loader/request.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
« no previous file with comments | « ui/file_manager/gallery/js/slide_mode.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/image_loader/request.js
diff --git a/ui/file_manager/image_loader/request.js b/ui/file_manager/image_loader/request.js
index 11fc7c1ec6c158a49245efa3aadbf65871d59b70..f0d9f13cfb9ebc874e14dc109ce5388484e4d33f 100644
--- a/ui/file_manager/image_loader/request.js
+++ b/ui/file_manager/image_loader/request.js
@@ -273,8 +273,15 @@ AuthorizedXHR.prototype.load = function(url, onSuccess, onFailure) {
}.bind(this);
// Do not request a token for local resources, since it is not necessary.
- if (url.indexOf('filesystem:') === 0) {
- this.xhr_ = AuthorizedXHR.load_(null, url, onMaybeSuccess, onMaybeFailure);
+ if (/^filesystem:/.test(url)) {
+ // The query parameter is workaround for
+ // crbug.com/379678, which force to obtain the latest contents of the image.
+ var noCacheUrl = url + '?nocache=' + Date.now();
+ this.xhr_ = AuthorizedXHR.load_(
+ null,
+ noCacheUrl,
+ onMaybeSuccess,
+ onMaybeFailure);
return;
}
« no previous file with comments | « ui/file_manager/gallery/js/slide_mode.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698