Index: ui/file_manager/gallery/js/image_editor/image_view.js |
diff --git a/ui/file_manager/gallery/js/image_editor/image_view.js b/ui/file_manager/gallery/js/image_editor/image_view.js |
index 274cfbf6e58553ad4db74533697ba28c2cf22922..e0d6a20270ceb26d5c89cd9aa80e583cc83545eb 100644 |
--- a/ui/file_manager/gallery/js/image_editor/image_view.js |
+++ b/ui/file_manager/gallery/js/image_editor/image_view.js |
@@ -381,8 +381,7 @@ ImageView.prototype.load = |
loadType, ImageView.LOAD_TYPE_TOTAL); |
if (loadType === ImageView.LOAD_TYPE_ERROR && |
- !navigator.onLine && metadata.streaming) { |
- // |streaming| is set only when the file is not locally cached. |
+ !navigator.onLine && !metadata.drive.present) { |
loadType = ImageView.LOAD_TYPE_OFFLINE; |
} |
if (loadCallback) loadCallback(loadType, animationDuration, opt_error); |