| Index: ui/file_manager/gallery/js/slide_mode.js
|
| diff --git a/ui/file_manager/gallery/js/slide_mode.js b/ui/file_manager/gallery/js/slide_mode.js
|
| index f8f7105a92e768515e91da97661ed62340a7bd6b..0916f7ea59641c2a3eec2b2f09256820c1924d53 100644
|
| --- a/ui/file_manager/gallery/js/slide_mode.js
|
| +++ b/ui/file_manager/gallery/js/slide_mode.js
|
| @@ -20,9 +20,8 @@
|
| * function.
|
| * @constructor
|
| */
|
| -function SlideMode(container, content, toolbar, prompt,
|
| - dataModel, selectionModel, context,
|
| - toggleMode, displayStringFunction) {
|
| +function SlideMode(container, content, toolbar, prompt, dataModel,
|
| + selectionModel, context, volumeManager, toggleMode, displayStringFunction) {
|
| this.container_ = container;
|
| this.document_ = container.ownerDocument;
|
| this.content = content;
|
| @@ -31,6 +30,7 @@ function SlideMode(container, content, toolbar, prompt,
|
| this.dataModel_ = dataModel;
|
| this.selectionModel_ = selectionModel;
|
| this.context_ = context;
|
| + this.volumeManager_ = volumeManager;
|
| this.metadataCache_ = context.metadataCache;
|
| this.toggleMode_ = toggleMode;
|
| this.displayStringFunction_ = displayStringFunction;
|
| @@ -966,6 +966,7 @@ SlideMode.prototype.saveCurrentImage_ = function(item, callback) {
|
| this.showSpinner_(true);
|
|
|
| var savedPromise = this.dataModel_.saveItem(
|
| + this.volumeManager_,
|
| item,
|
| this.imageView_.getCanvas(),
|
| this.shouldOverwriteOriginal_());
|
|
|