diff --git a/connections/core.h b/connections/core.h index 53d32ae4..e7c88da9 100644 --- a/connections/core.h +++ b/connections/core.h @@ -17,6 +17,7 @@ #include #include +#include #include "absl/strings/string_view.h" #include "absl/types/span.h" @@ -507,7 +508,9 @@ class Core { // Registers a DeviceProvider to provide functionality for Nearby Connections // to interact with the DeviceProvider for retrieving the local device. - void RegisterDeviceProvider(std::unique_ptr provider); + void RegisterDeviceProvider(std::unique_ptr provider) { + client_.RegisterDeviceProvider(std::move(provider)); + } private: ClientProxy client_;