|
@@ -23,7 +23,7 @@
|
|
|
#include "ui/base/l10n/l10n_util.h"
|
|
|
#include "url/url_constants.h"
|
|
|
|
|
|
-#if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)
|
|
|
+#if defined(WIDEVINE_CDM_AVAILABLE) && BUILDFLAG(ENABLE_PEPPER_CDMS)
|
|
|
#include "chrome/common/widevine_cdm_constants.h"
|
|
|
#endif
|
|
|
|
|
@@ -71,7 +71,7 @@ content::PepperPluginInfo CreatePepperFlashInfo(const base::FilePath& path,
|
|
|
return plugin;
|
|
|
}
|
|
|
|
|
|
-#if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)
|
|
|
+#if defined(WIDEVINE_CDM_AVAILABLE) && BUILDFLAG(ENABLE_PEPPER_CDMS)
|
|
|
content::PepperPluginInfo CreateWidevineCdmInfo(const base::FilePath& path,
|
|
|
const std::string& version) {
|
|
|
content::PepperPluginInfo widevine_cdm;
|
|
@@ -135,7 +135,7 @@ void AddPepperFlashFromCommandLine(
|
|
|
plugins->push_back(CreatePepperFlashInfo(flash_path, flash_version));
|
|
|
}
|
|
|
|
|
|
-#if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)
|
|
|
+#if defined(WIDEVINE_CDM_AVAILABLE) && BUILDFLAG(ENABLE_PEPPER_CDMS)
|
|
|
void AddWidevineCdmFromCommandLine(
|
|
|
std::vector<content::PepperPluginInfo>* plugins) {
|
|
|
auto command_line = base::CommandLine::ForCurrentProcess();
|
|
@@ -187,7 +187,7 @@ void AtomContentClient::AddAdditionalSchemes(
|
|
|
void AtomContentClient::AddPepperPlugins(
|
|
|
std::vector<content::PepperPluginInfo>* plugins) {
|
|
|
AddPepperFlashFromCommandLine(plugins);
|
|
|
-#if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)
|
|
|
+#if defined(WIDEVINE_CDM_AVAILABLE) && BUILDFLAG(ENABLE_PEPPER_CDMS)
|
|
|
AddWidevineCdmFromCommandLine(plugins);
|
|
|
#endif
|
|
|
}
|