summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/extensions
diff options
context:
space:
mode:
authortbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-25 23:44:07 +0000
committertbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-25 23:44:07 +0000
commitf16c7fac345e677a2ddd2eae6a3c1a3d2b418f55 (patch)
tree012567acbef8c586ef24c4a2591edecbf46bff64 /chrome/browser/chromeos/extensions
parentb6a368fea40855d56268979936a453ff98009203 (diff)
downloadchromium_src-f16c7fac345e677a2ddd2eae6a3c1a3d2b418f55.zip
chromium_src-f16c7fac345e677a2ddd2eae6a3c1a3d2b418f55.tar.gz
chromium_src-f16c7fac345e677a2ddd2eae6a3c1a3d2b418f55.tar.bz2
Mount notification not showing up fix
TEST=Make sure notification pops out when USB is inserted and that USB gets mounted BUG=chromium-os:14330 Review URL: http://codereview.chromium.org/6903014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82948 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/extensions')
-rw-r--r--chrome/browser/chromeos/extensions/file_browser_event_router.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/extensions/file_browser_event_router.cc b/chrome/browser/chromeos/extensions/file_browser_event_router.cc
index 60ac2ba..dd3d419 100644
--- a/chrome/browser/chromeos/extensions/file_browser_event_router.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_event_router.cc
@@ -56,7 +56,7 @@ ExtensionFileBrowserEventRouter::~ExtensionFileBrowserEventRouter() {
void ExtensionFileBrowserEventRouter::ObserveFileSystemEvents(
Profile* profile) {
- if (profile_ || !profile)
+ if (!profile)
return;
profile_ = profile;
if (!chromeos::CrosLibrary::Get()->EnsureLoaded())
@@ -64,6 +64,7 @@ void ExtensionFileBrowserEventRouter::ObserveFileSystemEvents(
if (chromeos::UserManager::Get()->user_is_logged_in()) {
chromeos::MountLibrary* lib =
chromeos::CrosLibrary::Get()->GetMountLibrary();
+ lib->RemoveObserver(this);
lib->AddObserver(this);
lib->RequestMountInfoRefresh();
}