diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-12 23:08:20 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-12 23:08:20 +0000 |
commit | d303e4c803fcd050cfdeb231e3e0703c0e79295b (patch) | |
tree | 38afc803d0485736fab58b0fd75708722131bad1 /chrome/browser/chromeos | |
parent | 53e1dc025d084a3dee089c0660faf0b35e07f9a6 (diff) | |
download | chromium_src-d303e4c803fcd050cfdeb231e3e0703c0e79295b.zip chromium_src-d303e4c803fcd050cfdeb231e3e0703c0e79295b.tar.gz chromium_src-d303e4c803fcd050cfdeb231e3e0703c0e79295b.tar.bz2 |
Handle DEVICE_REMOVED in the same way as DISK_REMOVED
BUG=none
TEST=On ChromeOS, insert USB stick and pull it out before it gets mounted. The "scanning device" pop up should go away automatically.
Review URL: http://codereview.chromium.org/603048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38969 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos')
-rw-r--r-- | chrome/browser/chromeos/usb_mount_observer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/usb_mount_observer.cc b/chrome/browser/chromeos/usb_mount_observer.cc index 7a271f4..ce0a447 100644 --- a/chrome/browser/chromeos/usb_mount_observer.cc +++ b/chrome/browser/chromeos/usb_mount_observer.cc @@ -54,7 +54,8 @@ void USBMountObserver::MountChanged(chromeos::MountLibrary* obj, // Return since disk added doesn't mean anything until // its mounted, which is a change event. LOG(INFO) << "Got added mount:" << path; - } else if (evt == chromeos::DISK_REMOVED) { + } else if (evt == chromeos::DISK_REMOVED || + evt == chromeos::DEVICE_REMOVED) { RemoveBrowserFromVector(path); } else if (evt == chromeos::DISK_CHANGED) { BrowserIterator iter = FindBrowserForPath(path); |