Index: components/filesystem/file_system_impl.cc |
diff --git a/components/filesystem/file_system_impl.cc b/components/filesystem/file_system_impl.cc |
index 5a60c5cfd9278d6200cb88c32dacfaf7ab1a3ebe..cf444b38d2ffcc04456efd3bdb372194aaf57ddf 100644 |
--- a/components/filesystem/file_system_impl.cc |
+++ b/components/filesystem/file_system_impl.cc |
@@ -16,7 +16,6 @@ |
#include "base/memory/scoped_ptr.h" |
#include "build/build_config.h" |
#include "components/filesystem/directory_impl.h" |
-#include "components/filesystem/file_system_app.h" |
#include "mojo/shell/public/cpp/connection.h" |
#include "url/gurl.h" |
@@ -45,12 +44,10 @@ const char kUserDataDir[] = "user-data-dir"; |
} // namespace filesystem |
-FileSystemImpl::FileSystemImpl(FileSystemApp* app, |
- mojo::Connection* connection, |
+FileSystemImpl::FileSystemImpl(mojo::Connection* connection, |
mojo::InterfaceRequest<FileSystem> request, |
LockTable* lock_table) |
- : app_(app), |
- remote_application_url_(connection->GetRemoteApplicationURL()), |
+ : remote_application_url_(connection->GetRemoteApplicationURL()), |
binding_(this, std::move(request)), |
lock_table_(lock_table) {} |
@@ -89,9 +86,8 @@ void FileSystemImpl::OpenFileSystem(const mojo::String& file_system, |
} |
if (!path.empty()) { |
- DirectoryImpl* dir_impl = new DirectoryImpl( |
+ new DirectoryImpl( |
std::move(directory), path, std::move(temp_dir), lock_table_); |
- app_->RegisterDirectoryToClient(dir_impl, std::move(client)); |
callback.Run(FileError::OK); |
} else { |
callback.Run(FileError::FAILED); |