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

Unified Diff: ui/file_manager/file_manager/background/js/device_handler.js

Issue 541623002: Files.app: Remove scanning notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « chrome/test/data/file_manager/unit_tests/device_handler_unittest.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/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 66ddc5205dd501bef76a83fa05b8df157c976cd8..ddbc46b1d7c4382ff69f971f88321156c2ea9934 100644
--- a/ui/file_manager/file_manager/background/js/device_handler.js
+++ b/ui/file_manager/file_manager/background/js/device_handler.js
@@ -94,15 +94,6 @@ DeviceHandler.Notification = function(prefix, title, message, opt_buttonLabel) {
* @type {DeviceHandler.Notification}
* @const
*/
-DeviceHandler.Notification.DEVICE = new DeviceHandler.Notification(
- 'device',
- 'REMOVABLE_DEVICE_DETECTION_TITLE',
- 'REMOVABLE_DEVICE_SCANNING_MESSAGE');
-
-/**
- * @type {DeviceHandler.Notification}
- * @const
- */
DeviceHandler.Notification.DEVICE_NAVIGATION = new DeviceHandler.Notification(
'deviceNavigation',
'REMOVABLE_DEVICE_DETECTION_TITLE',
@@ -227,18 +218,11 @@ DeviceHandler.Notification.prototype.makeId_ = function(devicePath) {
*/
DeviceHandler.prototype.onDeviceChanged_ = function(event) {
switch (event.type) {
- case 'scan_started':
- DeviceHandler.Notification.DEVICE.show(event.devicePath);
- break;
- case 'scan_cancelled':
- DeviceHandler.Notification.DEVICE.hide(event.devicePath);
- break;
case 'disabled':
DeviceHandler.Notification.DEVICE_EXTERNAL_STORAGE_DISABLED.show(
event.devicePath);
break;
case 'removed':
- DeviceHandler.Notification.DEVICE.hide(event.devicePath);
DeviceHandler.Notification.DEVICE_FAIL.hide(event.devicePath);
DeviceHandler.Notification.DEVICE_EXTERNAL_STORAGE_DISABLED.hide(
event.devicePath);
@@ -349,7 +333,6 @@ DeviceHandler.prototype.onMountCompleted_ = function(event) {
return;
// If this is the first result, hide the scanning notification.
case DeviceHandler.MountStatus.NO_RESULT:
- DeviceHandler.Notification.DEVICE.hide(volume.devicePath);
this.mountStatus_[volume.devicePath] = getFirstStatus(event);
break;
// If there are only parent errors, and the new result is child's one, hide
« no previous file with comments | « chrome/test/data/file_manager/unit_tests/device_handler_unittest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698