Index: chrome/utility/extensions/extensions_handler.cc |
diff --git a/chrome/utility/extensions/extensions_handler.cc b/chrome/utility/extensions/extensions_handler.cc |
index 942545e1dbf2aefccb5ae25acd5d762657c64774..982045ff9342790f5c76d8e82f99afd3c82b0e23 100644 |
--- a/chrome/utility/extensions/extensions_handler.cc |
+++ b/chrome/utility/extensions/extensions_handler.cc |
@@ -65,8 +65,11 @@ void ExtensionsHandler::PreSandboxStartup() { |
// Initialize libexif for image metadata parsing. |
metadata::ImageMetadataExtractor::InitializeLibrary(); |
- // Initialize media libraries for media file validation. |
- media::InitializeMediaLibrary(); |
+ // Load media libraries for media file validation. |
+ base::FilePath media_path; |
+ PathService::Get(content::DIR_MEDIA_LIBS, &media_path); |
+ if (!media_path.empty()) |
+ media::InitializeMediaLibrary(media_path); |
} |
bool ExtensionsHandler::OnMessageReceived(const IPC::Message& message) { |