diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-12 14:07:37 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-17 10:29:26 +0000 |
commit | ec02ee4181c49b61fce1c8fb99292dbb8139cc90 (patch) | |
tree | 25cde714b2b71eb639d1cd53f5a22e9ba76e14ef /chromium/components/filesystem | |
parent | bb09965444b5bb20b096a291445170876225268d (diff) | |
download | qtwebengine-chromium-ec02ee4181c49b61fce1c8fb99292dbb8139cc90.tar.gz |
BASELINE: Update Chromium to 59.0.3071.134
Change-Id: Id02ef6fb2204c5fd21668a1c3e6911c83b17585a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/components/filesystem')
-rw-r--r-- | chromium/components/filesystem/file_system_app.cc | 15 | ||||
-rw-r--r-- | chromium/components/filesystem/file_system_app.h | 8 |
2 files changed, 15 insertions, 8 deletions
diff --git a/chromium/components/filesystem/file_system_app.cc b/chromium/components/filesystem/file_system_app.cc index dd1d24b0108..c54639cea37 100644 --- a/chromium/components/filesystem/file_system_app.cc +++ b/chromium/components/filesystem/file_system_app.cc @@ -11,7 +11,6 @@ #include "base/files/file_util.h" #include "base/memory/ptr_util.h" #include "mojo/public/cpp/bindings/strong_binding.h" -#include "services/service_manager/public/cpp/connection.h" #include "services/service_manager/public/cpp/connector.h" #include "services/service_manager/public/cpp/interface_registry.h" #include "services/service_manager/public/cpp/service_context.h" @@ -39,7 +38,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 +48,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: diff --git a/chromium/components/filesystem/file_system_app.h b/chromium/components/filesystem/file_system_app.h index b3f399d8df0..7035393eda1 100644 --- a/chromium/components/filesystem/file_system_app.h +++ b/chromium/components/filesystem/file_system_app.h @@ -10,6 +10,7 @@ #include "components/filesystem/file_system_impl.h" #include "components/filesystem/lock_table.h" #include "components/filesystem/public/interfaces/file_system.mojom.h" +#include "services/service_manager/public/cpp/binder_registry.h" #include "services/service_manager/public/cpp/interface_factory.h" #include "services/service_manager/public/cpp/service.h" #include "services/tracing/public/cpp/provider.h" @@ -29,8 +30,9 @@ class FileSystemApp // |service_manager::Service| override: void OnStart() override; - bool OnConnect(const service_manager::ServiceInfo& remote_info, - service_manager::InterfaceRegistry* registry) override; + void OnBindInterface(const service_manager::ServiceInfo& source_info, + const std::string& interface_name, + mojo::ScopedMessagePipeHandle interface_pipe) override; // |InterfaceFactory<Files>| implementation: void Create(const service_manager::Identity& remote_identity, @@ -38,6 +40,8 @@ class FileSystemApp tracing::Provider tracing_; + service_manager::BinderRegistry registry_; + scoped_refptr<LockTable> lock_table_; DISALLOW_COPY_AND_ASSIGN(FileSystemApp); |