Index: media/blink/webcontentdecryptionmodulesession_impl.cc |
diff --git a/media/blink/webcontentdecryptionmodulesession_impl.cc b/media/blink/webcontentdecryptionmodulesession_impl.cc |
index 5ef54ee04a23852103129e43096de01b8b4e4d3b..bfb089e0887c37cf1dd7588994918198dae9be85 100644 |
--- a/media/blink/webcontentdecryptionmodulesession_impl.cc |
+++ b/media/blink/webcontentdecryptionmodulesession_impl.cc |
@@ -21,13 +21,14 @@ |
#include "media/blink/cdm_session_adapter.h" |
#include "media/blink/webmediaplayer_util.h" |
#include "media/cdm/json_web_key.h" |
+#include "media/media_features.h" |
#include "third_party/WebKit/public/platform/WebData.h" |
#include "third_party/WebKit/public/platform/WebEncryptedMediaKeyInformation.h" |
#include "third_party/WebKit/public/platform/WebString.h" |
#include "third_party/WebKit/public/platform/WebURL.h" |
#include "third_party/WebKit/public/platform/WebVector.h" |
-#if defined(USE_PROPRIETARY_CODECS) |
+#if BUILDFLAG(USE_PROPRIETARY_CODECS) |
#include "media/cdm/cenc_utils.h" |
#endif |
@@ -124,7 +125,7 @@ bool SanitizeInitData(EmeInitDataType init_data_type, |
return true; |
case EmeInitDataType::CENC: |
-#if defined(USE_PROPRIETARY_CODECS) |
+#if BUILDFLAG(USE_PROPRIETARY_CODECS) |
sanitized_init_data->assign(init_data, init_data + init_data_length); |
if (!ValidatePsshInput(*sanitized_init_data)) { |
error_message->assign("Initialization data for CENC is incorrect."); |