Index: chrome/browser/chromeos/file_system_provider/service.cc |
diff --git a/chrome/browser/chromeos/file_system_provider/service.cc b/chrome/browser/chromeos/file_system_provider/service.cc |
index 36bdda0063284813622296953f2129446cca7003..35d5bcb984b5edc283ecdde69f809b06e8fbbbe4 100644 |
--- a/chrome/browser/chromeos/file_system_provider/service.cc |
+++ b/chrome/browser/chromeos/file_system_provider/service.cc |
@@ -47,6 +47,8 @@ Service::Service(Profile* profile, |
} |
Service::~Service() { |
+ extension_registry_->RemoveObserver(this); |
+ |
ProvidedFileSystemMap::iterator it = file_system_map_.begin(); |
while (it != file_system_map_.end()) { |
const int file_system_id = it->first; |
@@ -204,10 +206,11 @@ bool Service::RequestUnmount(int file_system_id) { |
if (file_system_it == file_system_map_.end()) |
return false; |
- return file_system_it->second->RequestUnmount( |
+ file_system_it->second->RequestUnmount( |
base::Bind(&Service::OnRequestUnmountStatus, |
weak_ptr_factory_.GetWeakPtr(), |
file_system_it->second->GetFileSystemInfo())); |
+ return true; |
} |
std::vector<ProvidedFileSystemInfo> Service::GetProvidedFileSystemInfoList() { |