Index: chrome/utility/extensions/extensions_handler.cc |
diff --git a/chrome/utility/extensions/extensions_handler.cc b/chrome/utility/extensions/extensions_handler.cc |
index 25586e9b3a2a8ca919b4e94757e2ab19337474b8..b84b25b44ec2503994ea361e01b4f4248b30ff15 100644 |
--- a/chrome/utility/extensions/extensions_handler.cc |
+++ b/chrome/utility/extensions/extensions_handler.cc |
@@ -21,9 +21,12 @@ |
#include "extensions/common/extension_utility_messages.h" |
#include "extensions/utility/unpacker.h" |
#include "media/base/media.h" |
-#include "media/base/media_file_checker.h" |
#include "ui/base/ui_base_switches.h" |
+#if !defined(MEDIA_DISABLE_FFMPEG) |
+#include "media/base/media_file_checker.h" |
+#endif |
+ |
#if defined(OS_WIN) |
#include "chrome/common/extensions/api/networking_private/networking_private_crypto.h" |
#include "chrome/utility/media_galleries/itunes_pref_parser_win.h" |
@@ -120,11 +123,15 @@ bool ExtensionsHandler::OnMessageReceived(const IPC::Message& message) { |
void ExtensionsHandler::OnCheckMediaFile( |
int64 milliseconds_of_decoding, |
const IPC::PlatformFileForTransit& media_file) { |
+#if !defined(MEDIA_DISABLE_FFMPEG) |
media::MediaFileChecker checker( |
IPC::PlatformFileForTransitToFile(media_file)); |
const bool check_success = checker.Start( |
base::TimeDelta::FromMilliseconds(milliseconds_of_decoding)); |
Send(new ChromeUtilityHostMsg_CheckMediaFile_Finished(check_success)); |
+#else |
+ Send(new ChromeUtilityHostMsg_CheckMediaFile_Finished(false)); |
+#endif |
ReleaseProcessIfNeeded(); |
} |