| Index: components/filesystem/file_system_app.cc
|
| diff --git a/components/filesystem/file_system_app.cc b/components/filesystem/file_system_app.cc
|
| index dd1d24b01085ecbd19c5ce4853c64b4fbb44ff65..e12cba12108749983ee9e4a59486068ab41ee570 100644
|
| --- a/components/filesystem/file_system_app.cc
|
| +++ b/components/filesystem/file_system_app.cc
|
| @@ -39,7 +39,9 @@ const char kUserDataDir[] = "user-data-dir";
|
|
|
| } // namespace filesystem
|
|
|
| -FileSystemApp::FileSystemApp() : lock_table_(new LockTable) {}
|
| +FileSystemApp::FileSystemApp() : lock_table_(new LockTable) {
|
| + registry_.AddInterface<mojom::FileSystem>(this);
|
| +}
|
|
|
| FileSystemApp::~FileSystemApp() {}
|
|
|
| @@ -47,10 +49,12 @@ void FileSystemApp::OnStart() {
|
| tracing_.Initialize(context()->connector(), context()->identity().name());
|
| }
|
|
|
| -bool FileSystemApp::OnConnect(const service_manager::ServiceInfo& remote_info,
|
| - service_manager::InterfaceRegistry* registry) {
|
| - registry->AddInterface<mojom::FileSystem>(this);
|
| - return true;
|
| +void FileSystemApp::OnBindInterface(
|
| + const service_manager::ServiceInfo& source_info,
|
| + const std::string& interface_name,
|
| + mojo::ScopedMessagePipeHandle interface_pipe) {
|
| + registry_.BindInterface(source_info.identity, interface_name,
|
| + std::move(interface_pipe));
|
| }
|
|
|
| // |InterfaceFactory<Files>| implementation:
|
|
|