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

Unified Diff: Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp
diff --git a/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp b/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp
index 46ffd93f10861149d01eddbff0f021bd0be8a2ae..671330fb1712d8a484fb4199d370d4ec3ffe96b8 100644
--- a/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp
+++ b/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp
@@ -74,7 +74,7 @@ typedef Function<void(ExceptionCode, const String&)> FailureCallback;
// Represents the result used when setContentDecryptionModule() is called.
// Calls |success| if result is resolved, |failure| is result is rejected.
-class SetContentDecryptionModuleResult FINAL : public ContentDecryptionModuleResult {
+class SetContentDecryptionModuleResult final : public ContentDecryptionModuleResult {
public:
SetContentDecryptionModuleResult(SuccessCallback success, FailureCallback failure)
: m_successCallback(success)
@@ -83,18 +83,18 @@ public:
}
// ContentDecryptionModuleResult implementation.
- virtual void complete() OVERRIDE
+ virtual void complete() override
{
m_successCallback();
}
- virtual void completeWithSession(blink::WebContentDecryptionModuleResult::SessionStatus status) OVERRIDE
+ virtual void completeWithSession(blink::WebContentDecryptionModuleResult::SessionStatus status) override
{
ASSERT_NOT_REACHED();
m_failureCallback(InvalidStateError, "Unexpected completion.");
}
- virtual void completeWithError(blink::WebContentDecryptionModuleException code, unsigned long systemCode, const blink::WebString& message) OVERRIDE
+ virtual void completeWithError(blink::WebContentDecryptionModuleException code, unsigned long systemCode, const blink::WebString& message) override
{
m_failureCallback(WebCdmExceptionToExceptionCode(code), message);
}
« no previous file with comments | « Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h ('k') | Source/modules/encryptedmedia/MediaKeyMessageEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698