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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_event_router.cc

Issue 6903014: Mount notification not showing up fix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_browser_event_router.cc
===================================================================
--- chrome/browser/chromeos/extensions/file_browser_event_router.cc (revision 82915)
+++ chrome/browser/chromeos/extensions/file_browser_event_router.cc (working copy)
@@ -56,7 +56,7 @@
void ExtensionFileBrowserEventRouter::ObserveFileSystemEvents(
Profile* profile) {
- if (profile_ || !profile)
+ if (!profile)
return;
profile_ = profile;
if (!chromeos::CrosLibrary::Get()->EnsureLoaded())
@@ -64,6 +64,7 @@
if (chromeos::UserManager::Get()->user_is_logged_in()) {
chromeos::MountLibrary* lib =
chromeos::CrosLibrary::Get()->GetMountLibrary();
+ lib->RemoveObserver(this);
lib->AddObserver(this);
lib->RequestMountInfoRefresh();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698