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

Unified Diff: media/cdm/ppapi/supported_cdm_versions.h

Issue 826953002: replace COMPILE_ASSERT with static_assert in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 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 | « media/cdm/ppapi/cdm_wrapper.h ('k') | media/ffmpeg/ffmpeg_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/ppapi/supported_cdm_versions.h
diff --git a/media/cdm/ppapi/supported_cdm_versions.h b/media/cdm/ppapi/supported_cdm_versions.h
index ae6e567c0e01076571fcc48ed9ebf6f3a2181e97..200a132449f66c9d24d2d8a6faabce1d16be98f1 100644
--- a/media/cdm/ppapi/supported_cdm_versions.h
+++ b/media/cdm/ppapi/supported_cdm_versions.h
@@ -20,9 +20,9 @@ bool IsSupportedCdmModuleVersion(int version) {
}
bool IsSupportedCdmInterfaceVersion(int version) {
- COMPILE_ASSERT(cdm::ContentDecryptionModule::kVersion ==
- cdm::ContentDecryptionModule_6::kVersion,
- update_code_below);
+ static_assert(cdm::ContentDecryptionModule::kVersion ==
+ cdm::ContentDecryptionModule_6::kVersion,
+ "update the code below");
switch(version) {
// Supported versions in decreasing order.
case cdm::ContentDecryptionModule_6::kVersion:
@@ -33,9 +33,9 @@ bool IsSupportedCdmInterfaceVersion(int version) {
}
bool IsSupportedCdmHostVersion(int version) {
- COMPILE_ASSERT(cdm::ContentDecryptionModule::Host::kVersion ==
- cdm::ContentDecryptionModule_6::Host::kVersion,
- update_code_below);
+ static_assert(cdm::ContentDecryptionModule::Host::kVersion ==
+ cdm::ContentDecryptionModule_6::Host::kVersion,
+ "update the code below");
switch(version) {
// Supported versions in decreasing order.
case cdm::Host_6::kVersion:
« no previous file with comments | « media/cdm/ppapi/cdm_wrapper.h ('k') | media/ffmpeg/ffmpeg_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698