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

Unified Diff: Source/modules/crypto/NormalizeAlgorithm.cpp

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 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
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.h ('k') | Source/modules/filesystem/DirectoryReaderSync.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.h ('k') | Source/modules/filesystem/DirectoryReaderSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698