| Index: Source/modules/crypto/NormalizeAlgorithm.cpp
|
| diff --git a/Source/modules/crypto/NormalizeAlgorithm.cpp b/Source/modules/crypto/NormalizeAlgorithm.cpp
|
| index 57ba8b3776ffdb564dc0d9a1c43e2dae606b73b8..ec458057bd7ffa58188ba6dc7a8791acbb3b8458 100644
|
| --- a/Source/modules/crypto/NormalizeAlgorithm.cpp
|
| +++ b/Source/modules/crypto/NormalizeAlgorithm.cpp
|
| @@ -32,7 +32,6 @@
|
| #include "modules/crypto/NormalizeAlgorithm.h"
|
|
|
| #include "bindings/v8/Dictionary.h"
|
| -#include "bindings/v8/ExceptionMessages.h"
|
| #include "bindings/v8/ExceptionState.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "platform/NotImplemented.h"
|
| @@ -226,7 +225,7 @@ public:
|
| result.append(m_messages[i], strlen(m_messages[i]));
|
| }
|
|
|
| - return ExceptionMessages::failedToExecute(algorithmOperationToName(m_op), "SubtleCrypto", result.toString());
|
| + return result.toString();
|
| }
|
|
|
| String toString(const char* message) const
|
| @@ -544,35 +543,4 @@ const char* algorithmIdToName(blink::WebCryptoAlgorithmId id)
|
| return AlgorithmRegistry::instance().lookupAlgorithmById(id)->algorithmName;
|
| }
|
|
|
| -const char* algorithmOperationToName(AlgorithmOperation op)
|
| -{
|
| - switch (op) {
|
| - case Encrypt:
|
| - return "encrypt";
|
| - case Decrypt:
|
| - return "decrypt";
|
| - case Sign:
|
| - return "sign";
|
| - case Verify:
|
| - return "verify";
|
| - case Digest:
|
| - return "digest";
|
| - case GenerateKey:
|
| - return "generateKey";
|
| - case ImportKey:
|
| - return "importKey";
|
| - case DeriveKey:
|
| - return "deriveKey";
|
| - case WrapKey:
|
| - return "wrapKey";
|
| - case UnwrapKey:
|
| - return "unwrapKey";
|
| - case NumberOfAlgorithmOperations:
|
| - ASSERT_NOT_REACHED();
|
| - return "unknown";
|
| - };
|
| - ASSERT_NOT_REACHED();
|
| - return "unknown";
|
| -}
|
| -
|
| } // namespace WebCore
|
|
|