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 5d6d4f918409ec4f46a0eca145f1fdc2d1ec9f31..4778d2950d91724b66ec5afefd2eadc432cb1aa9 100644 |
--- a/third_party/WebKit/Source/platform/exported/Platform.cpp |
+++ b/third_party/WebKit/Source/platform/exported/Platform.cpp |
@@ -35,6 +35,7 @@ |
#include "platform/fonts/FontCacheMemoryDumpProvider.h" |
#include "platform/heap/BlinkGCMemoryDumpProvider.h" |
#include "platform/heap/GCTaskRunner.h" |
+#include "platform/mime/WebMimeRegistryImpl.h" |
#include "platform/tracing/MemoryCacheDumpProvider.h" |
#include "public/platform/InterfaceProvider.h" |
#include "public/platform/Platform.h" |
@@ -141,6 +142,12 @@ Platform* Platform::current() { |
return s_platform; |
} |
+WebMimeRegistry* Platform::mimeRegistry() { |
+ // Currently this is only called on the main thread. |
+ DEFINE_STATIC_LOCAL(WebMimeRegistryImpl, mimeRegistry, ()); |
+ return &mimeRegistry; |
+} |
+ |
WebThread* Platform::mainThread() const { |
return m_mainThread; |
} |