| Index: ui/file_manager/file_manager/background/js/device_handler.js
|
| diff --git a/ui/file_manager/file_manager/background/js/device_handler.js b/ui/file_manager/file_manager/background/js/device_handler.js
|
| index 5bd92016272ac5e92a0166a55d1bc5c6885ee14f..14bad6fb1b42918c15f0196e26f9dbd86a3eb755 100644
|
| --- a/ui/file_manager/file_manager/background/js/device_handler.js
|
| +++ b/ui/file_manager/file_manager/background/js/device_handler.js
|
| @@ -485,19 +485,12 @@ DeviceHandler.prototype.onMount_ = function(event) {
|
| * @this {DeviceHandler}
|
| */
|
| function(appEnabled) {
|
| - // We don't want to auto-open two windows
|
| - // when a user inserts a removable device.
|
| - // If Photos App is enabled only show a notification.
|
| - if (appEnabled) {
|
| - if (metadata.deviceType && metadata.devicePath) {
|
| - DeviceHandler.Notification.DEVICE_IMPORT.show(
|
| - /** @type {string} */ (
|
| - metadata.devicePath));
|
| - }
|
| - } else {
|
| + // We don't want to auto-open two windows when a user
|
| + // inserts a removable device. Only open Files app if
|
| + // auto-import is disabled in Photos app.
|
| + if (!appEnabled) {
|
| this.openMediaDirectory_(
|
| - metadata.volumeId,
|
| - directory.fullPath);
|
| + metadata.volumeId, directory.fullPath);
|
| }
|
| }.bind(this));
|
| }.bind(this))
|
|
|