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

Unified Diff: Source/modules/encryptedmedia/MediaKeys.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/encryptedmedia/MediaKeySession.cpp ('k') | Source/modules/indexeddb/IDBCursor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encryptedmedia/MediaKeys.cpp
diff --git a/Source/modules/encryptedmedia/MediaKeys.cpp b/Source/modules/encryptedmedia/MediaKeys.cpp
index ff22616803a52b947d046de10fd444eee381edb3..fea8256395a535b258bb67eff6ea9bfbe900c3e0 100644
--- a/Source/modules/encryptedmedia/MediaKeys.cpp
+++ b/Source/modules/encryptedmedia/MediaKeys.cpp
@@ -41,9 +41,9 @@ PassRefPtr<MediaKeys> MediaKeys::create(const String& keySystem, ExceptionCode&
// From <http://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html#dom-media-keys-constructor>:
// The MediaKeys(keySystem) constructor must run the following steps:
- // 1. If keySystem is null or an empty string, throw an INVALID_ACCESS_ERR exception and abort these steps.
+ // 1. If keySystem is null or an empty string, throw an InvalidAccessError exception and abort these steps.
if (keySystem.isEmpty()) {
- ec = INVALID_ACCESS_ERR;
+ ec = InvalidAccessError;
return 0;
}
@@ -90,9 +90,9 @@ PassRefPtr<MediaKeySession> MediaKeys::createSession(ScriptExecutionContext* con
// Note: The contents of initData are container-specific Initialization Data.
// 1. If type is null or an empty string and initData is not null or an empty string, throw an
- // INVALID_ACCESS_ERR exception and abort these steps.
+ // InvalidAccessError exception and abort these steps.
if ((type.isEmpty()) && (!initData || initData->length())) {
- ec = INVALID_ACCESS_ERR;
+ ec = InvalidAccessError;
return 0;
}
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeySession.cpp ('k') | Source/modules/indexeddb/IDBCursor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698