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

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

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | « Source/modules/crypto/Crypto.cpp ('k') | Source/modules/encryptedmedia/MediaKeys.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encryptedmedia/MediaKeySession.cpp
diff --git a/Source/modules/encryptedmedia/MediaKeySession.cpp b/Source/modules/encryptedmedia/MediaKeySession.cpp
index f95704a5dd77f8d8f65c2a13140fd6b8e5041056..1a120badecf0c7ac7d6a25215e00dd6f45d41a8b 100644
--- a/Source/modules/encryptedmedia/MediaKeySession.cpp
+++ b/Source/modules/encryptedmedia/MediaKeySession.cpp
@@ -112,10 +112,10 @@ void MediaKeySession::update(Uint8Array* key, ExceptionCode& ec)
{
// From <http://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html#dom-addkey>:
// The addKey(key) method must run the following steps:
- // 1. If the first or second argument [sic] is null or an empty array, throw an INVALID_ACCESS_ERR.
+ // 1. If the first or second argument [sic] is null or an empty array, throw an InvalidAccessError.
// NOTE: the reference to a "second argument" is a spec bug.
if (!key || !key->length()) {
- ec = INVALID_ACCESS_ERR;
+ ec = InvalidAccessError;
return;
}
« no previous file with comments | « Source/modules/crypto/Crypto.cpp ('k') | Source/modules/encryptedmedia/MediaKeys.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698