| Index: third_party/WebKit/Source/platform/exported/Platform.cpp
|
| diff --git a/third_party/WebKit/Source/platform/exported/Platform.cpp b/third_party/WebKit/Source/platform/exported/Platform.cpp
|
| index fc1be64c0e13c2823212981e194de96d581722d6..5f89251a5329aca9b39ed2abd3434304997078a9 100644
|
| --- a/third_party/WebKit/Source/platform/exported/Platform.cpp
|
| +++ b/third_party/WebKit/Source/platform/exported/Platform.cpp
|
| @@ -37,11 +37,19 @@
|
| #include "platform/heap/GCTaskRunner.h"
|
| #include "platform/web_memory_dump_provider_adapter.h"
|
| #include "public/platform/Platform.h"
|
| +#include "public/platform/ServiceRegistry.h"
|
| #include "public/platform/WebPrerenderingSupport.h"
|
| #include "wtf/HashMap.h"
|
| #include "wtf/OwnPtr.h"
|
|
|
| namespace blink {
|
| +namespace {
|
| +
|
| +class EmptyServiceRegistry : public ServiceRegistry {
|
| + void connectToRemoteService(const char* name, mojo::ScopedMessagePipeHandle) override {}
|
| +};
|
| +
|
| +}
|
|
|
| static Platform* s_platform = nullptr;
|
| using ProviderToAdapterMap = HashMap<WebMemoryDumpProvider*, OwnPtr<WebMemoryDumpProviderAdapter>>;
|
| @@ -177,4 +185,10 @@ void Platform::unregisterMemoryDumpProvider(WebMemoryDumpProvider* provider)
|
| memoryDumpProviders().remove(it);
|
| }
|
|
|
| +ServiceRegistry* Platform::serviceRegistry()
|
| +{
|
| + DEFINE_STATIC_LOCAL(EmptyServiceRegistry, emptyServiceRegistry, ());
|
| + return &emptyServiceRegistry;
|
| +}
|
| +
|
| } // namespace blink
|
|
|