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

Unified Diff: media/cdm/ppapi/ppapi_cdm_adapter.cc

Issue 2518403004: media: Use __func__ instead of __FUNCTION__ (Closed)
Patch Set: rebase Created 4 years 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: media/cdm/ppapi/ppapi_cdm_adapter.cc
diff --git a/media/cdm/ppapi/ppapi_cdm_adapter.cc b/media/cdm/ppapi/ppapi_cdm_adapter.cc
index b4b5094a95878ec171505552de65f823b2ce502a..aaa39e228a23e5f56afb7e7d4376dd0428b44c3a 100644
--- a/media/cdm/ppapi/ppapi_cdm_adapter.cc
+++ b/media/cdm/ppapi/ppapi_cdm_adapter.cc
@@ -1073,7 +1073,7 @@ void PpapiCdmAdapter::EnableOutputProtection(uint32_t desired_protection_mask) {
// inspect the protection status on a regular basis.
if (result != PP_OK && result != PP_OK_COMPLETIONPENDING)
- CDM_DLOG() << __FUNCTION__ << " failed!";
+ CDM_DLOG() << __func__ << " failed!";
}
void PpapiCdmAdapter::QueryOutputProtectionStatus() {
@@ -1092,7 +1092,7 @@ void PpapiCdmAdapter::QueryOutputProtectionStatus() {
// Fall through on error and issue an empty OnQueryOutputProtectionStatus().
PP_DCHECK(result != PP_OK);
- CDM_DLOG() << __FUNCTION__ << " failed, result = " << result;
+ CDM_DLOG() << __func__ << " failed, result = " << result;
}
void PpapiCdmAdapter::OnDeferredInitializationDone(cdm::StreamType stream_type,
@@ -1181,7 +1181,7 @@ void PpapiCdmAdapter::SendPlatformChallengeDone(
int32_t result,
const linked_ptr<PepperPlatformChallengeResponse>& response) {
if (result != PP_OK) {
- CDM_DLOG() << __FUNCTION__ << ": Platform challenge failed!";
+ CDM_DLOG() << __func__ << ": Platform challenge failed!";
cdm::PlatformChallengeResponse platform_challenge_response = {};
cdm_->OnPlatformChallengeResponse(platform_challenge_response);
return;
@@ -1209,7 +1209,7 @@ void PpapiCdmAdapter::SendPlatformChallengeDone(
void PpapiCdmAdapter::EnableProtectionDone(int32_t result) {
// Does nothing since clients must call QueryOutputProtectionStatus() to
// inspect the protection status on a regular basis.
- CDM_DLOG() << __FUNCTION__ << " : " << result;
+ CDM_DLOG() << __func__ << " : " << result;
}
void PpapiCdmAdapter::QueryOutputProtectionStatusDone(int32_t result) {
@@ -1219,7 +1219,7 @@ void PpapiCdmAdapter::QueryOutputProtectionStatusDone(int32_t result) {
// Return a query status of failed on error.
cdm::QueryResult query_result;
if (result != PP_OK) {
- CDM_DLOG() << __FUNCTION__ << " failed, result = " << result;
+ CDM_DLOG() << __func__ << " failed, result = " << result;
output_link_mask_ = output_protection_mask_ = 0;
query_result = cdm::kQueryFailed;
} else {
« no previous file with comments | « media/cdm/ppapi/external_clear_key/clear_key_cdm.cc ('k') | media/filters/android/media_codec_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698