Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Unified Diff: chrome/utility/extensions/extensions_handler.cc

Issue 1415793003: fix build when ffmpeg, libvpx and libwebm are disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..c78097123aa292db09fddfc465c42034a25ded94 100644
--- a/chrome/utility/extensions/extensions_handler.cc
+++ b/chrome/utility/extensions/extensions_handler.cc
@@ -120,11 +120,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));
xhwang 2015/11/02 18:11:51 I suppose we'll never reach here (since nobody com
Julien Isorce Samsung 2015/11/03 16:02:27 You are right, I'll add NOTREACHED() so that it wo
+#endif
ReleaseProcessIfNeeded();
}

Powered by Google App Engine
This is Rietveld 408576698