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

Unified Diff: third_party/widevine/cdm/widevine_cdm_common.h

Issue 2411433002: Move ENABLE_PEPPER_CDMS to a buildflag header. (Closed)
Patch Set: Fixes Created 4 years, 2 months 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
« no previous file with comments | « third_party/widevine/cdm/DEPS ('k') | tools/gn/docs/cookbook.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/widevine/cdm/widevine_cdm_common.h
diff --git a/third_party/widevine/cdm/widevine_cdm_common.h b/third_party/widevine/cdm/widevine_cdm_common.h
index e0344947278d308ff7fcd29aa3420a3019e494e3..1a962a01160a4e69c6fce16113868cc54fda84e7 100644
--- a/third_party/widevine/cdm/widevine_cdm_common.h
+++ b/third_party/widevine/cdm/widevine_cdm_common.h
@@ -5,6 +5,8 @@
#ifndef WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
#define WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
+#include "ppapi/features/features.h"
+
// This file defines constants common to all Widevine CDM versions.
// Widevine CDM version contains 4 components, e.g. 1.4.0.195.
@@ -28,7 +30,7 @@ const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module";
const char kWidevineCdmDescription[] =
"Enables Widevine licenses for playback of HTML audio/video content.";
-#if defined(ENABLE_PEPPER_CDMS)
+#if BUILDFLAG(ENABLE_PEPPER_CDMS)
const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm";
const char kWidevineCdmPluginMimeTypeDescription[] =
"Widevine Content Decryption Module";
@@ -60,6 +62,6 @@ const char kCdmSupportedCodecAvc1[] = "avc1";
// CDM is installed by the component installer instead of the Chrome installer.
#define WIDEVINE_CDM_IS_COMPONENT
#endif // defined(OS_MACOSX) || defined(OS_WIN)
-#endif // defined(ENABLE_PEPPER_CDMS)
+#endif // BUILDFLAG(ENABLE_PEPPER_CDMS)
#endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
« no previous file with comments | « third_party/widevine/cdm/DEPS ('k') | tools/gn/docs/cookbook.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698