From 647c3a9f217a9236052e18c7b032669863dd1734 Mon Sep 17 00:00:00 2001 From: "dhg@chromium.org" Date: Thu, 20 May 2010 23:48:01 +0000 Subject: Fixing mounting case. BUG=chromium-os:3292 TEST=none Review URL: http://codereview.chromium.org/2102013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47866 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chromeos/usb_mount_observer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser') diff --git a/chrome/browser/chromeos/usb_mount_observer.cc b/chrome/browser/chromeos/usb_mount_observer.cc index c6d5db4..4dda09b 100644 --- a/chrome/browser/chromeos/usb_mount_observer.cc +++ b/chrome/browser/chromeos/usb_mount_observer.cc @@ -91,7 +91,7 @@ void USBMountObserver::MountChanged(chromeos::MountLibrary* obj, } else if (evt == chromeos::DISK_CHANGED) { BrowserIterator iter = FindBrowserForPath(path); LOG(INFO) << "Got changed mount:" << path; - if (iter == browsers_.end() && iter->browser) { + if (iter == browsers_.end()) { // We don't currently have this one, so it must have been // mounted const chromeos::MountLibrary::DiskVector& disks = obj->disks(); -- cgit v1.1