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

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

Issue 19384009: Rename WebCrypto::digest2 --> WebCrypto::digest (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | « no previous file | public/platform/WebCrypto.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/SubtleCrypto.cpp
diff --git a/Source/modules/crypto/SubtleCrypto.cpp b/Source/modules/crypto/SubtleCrypto.cpp
index 3bbc7031e6443d4f21643486e789bf6c848a47cd..e0e75ccb25244f1a819295c82288f3ccc6ddaa04 100644
--- a/Source/modules/crypto/SubtleCrypto.cpp
+++ b/Source/modules/crypto/SubtleCrypto.cpp
@@ -103,10 +103,7 @@ private:
class MockPlatformCrypto : public WebKit::WebCrypto {
public:
- // FIXME: delete
- virtual WebKit::WebCryptoOperation* digest(const WebKit::WebCryptoAlgorithm&) { return 0; }
-
- virtual void digest2(const WebKit::WebCryptoAlgorithm& algorithm, WebKit::WebCryptoOperationResult* result) OVERRIDE
+ virtual void digest(const WebKit::WebCryptoAlgorithm& algorithm, WebKit::WebCryptoOperationResult* result) OVERRIDE
{
if (algorithm.id() == WebKit::WebCryptoAlgorithmIdSha1) {
result->initializationSucceded(new MockSha1Operation(result));
@@ -176,7 +173,7 @@ PassRefPtr<CryptoOperation> SubtleCrypto::digest(const Dictionary& rawAlgorithm,
return 0;
RefPtr<CryptoOperation> op = CryptoOperation::create(algorithm, &ec);
- platformCrypto->digest2(algorithm, op.get());
+ platformCrypto->digest(algorithm, op.get());
return op.release();
}
« no previous file with comments | « no previous file | public/platform/WebCrypto.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698