Index: chrome/browser/chromeos/extensions/file_browser_event_router.cc |
diff --git a/chrome/browser/chromeos/extensions/file_browser_event_router.cc b/chrome/browser/chromeos/extensions/file_browser_event_router.cc |
index 4af966e60842a4206234257507eb216c0ccdb928..77e855d4bee3dbedd4e6786fed8eef73832cd9cd 100644 |
--- a/chrome/browser/chromeos/extensions/file_browser_event_router.cc |
+++ b/chrome/browser/chromeos/extensions/file_browser_event_router.cc |
@@ -654,7 +654,8 @@ void FileBrowserEventRouter::OnDiskRemoved( |
if (!disk->mount_path().empty()) { |
notifications_->ShowNotification( |
- FileBrowserNotifications::DEVICE_HARD_UNPLUG, disk->device_path()); |
+ FileBrowserNotifications::DEVICE_HARD_UNPLUG, |
+ disk->system_path_prefix()); |
DiskMountManager::GetInstance()->UnmountPath( |
disk->mount_path(), chromeos::UNMOUNT_OPTIONS_LAZY); |
} |
@@ -670,10 +671,9 @@ void FileBrowserEventRouter::OnDeviceAdded( |
// If the policy is set instead of showing the new device notification we show |
// a notification that the operation is not permitted. |
if (profile_->GetPrefs()->GetBoolean(prefs::kExternalStorageDisabled)) { |
- notifications_->ShowNotificationWithMessage( |
- FileBrowserNotifications::DEVICE_FAIL, |
- device_path, |
- l10n_util::GetStringUTF16(IDS_EXTERNAL_STORAGE_DISABLED_MESSAGE)); |
+ notifications_->ShowNotification( |
+ FileBrowserNotifications::DEVICE_EXTERNAL_STORAGE_DISABLED, |
+ device_path); |
return; |
} |