// The sandbox restricts our access to the registry, so we need to proxy // these calls over to the browser process. DEFINE_STATIC_LOCAL(MimeRegistryPtrHolder, registry_holder, ()); String mime_type; if (!registry_holder.mime_registry->GetMimeTypeFromExtension( ext.IsNull() ? "" : ext, &mime_type)) { return String(); } return mime_type; } by ABE Hiroki aka hATrayflood